1.

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

A. 4.320000e + 001 43.200001 43.2
B. 4.3 43.22 43.21
C. 4.3e 43.20f 43.00
D. Error
Answer» B. 4.3 43.22 43.21


Discussion

No Comment Found

Related MCQs