Examveda

What will be the output of the following C code?
double x=1.8;
printf("%.2lf",floor(x));

A. 2.0

B. 2.00

C. 1.0

D. 1.00

Answer: Option D


This Question Belongs to C Program >> Standard Library Functions

Join The Discussion

Related Questions on Standard Library Functions