C - Data Types - Discussion

You Are Here :: Home > C > Data Types - Discussion

 



Q.

Assuming the #include directive, which statement will print the following?

5.0 to the power 3 is 125.00

A. printf("%f to the power %f is %f\n", 5.0, 3, 125.0); B. printf("%3f to the power %1i is %6f\n", 5.0, 3, 125.0);
C. printf("%3.1f to the power %i is %6.2f\n", 5.0, 3, 125.0); D. puts("5.0 to the power 3 is %f", 5*5*5);

Answer: Option C
Explaination:

 


No Explanation








Discussion

Your Comments Goes here...
NameDiscussion