What will be the output of the following C code? [code] double x=1.2 printf("%.1lf", ceil(x));[/code]

Huỳnh Hiền

New member
What will be the output of the following C code?
Code:
    double x=1.2
    printf("%.1lf", ceil(x));
A. 1
B. 2
C. 1.0
D. 2.0
 

Tìm kiếm

Back
Top