1.

In a C program, following variables are defined: float x = 2.17; double y = 2.17; long double z = 2.17; Which of the following is correct way for printing these variables via printf.

A. printf("%f %lf %Lf",x,y,z);
B. printf( %f %f %f ,x,y,z);
C. printf("%f ? ?f",x,y,z);
D. printf("%f %lf %llf",x,y,z);
Answer» B. printf( %f %f %f ,x,y,z);


Discussion

No Comment Found

Related MCQs