1.

Which of the following is the correct output for the program given below?
#include <stdio.h>
int main ( )
{
double d = 2.25;
printf ("%e", d);
printf ("%f", d);
printf ("%g".d);
printf ("%lf n", d);
return 0 ;
}

A. 2.2 2.50 2.50 2.5
B. 2.2e 2.25f 2.00 2.25
C. 2.250000e + 000 2.250000 2.25 2.250000
D. Error
Answer» D. Error


Discussion

No Comment Found

Related MCQs