Top

Discussion

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: A

No answer description available for this question.

No comment is present. Be the first to comment.
Loading…

Post your comment