Home » C Programming » Data Types » Question
  1. Which of the following is the correct output for the program given below?
    #include <stdio.h>
    int main ( )
    {
    float n = 5.375 ;
    printf("%f %e %E\n" , n, n, n) ;
    return 0 ;
    }
    1. 5.375 5.375 5.375
    2. 5.375000 5.375000 5.375000
    3. 5.375000 5.375000e+000 5.375000E+000
    4. 5.375000 5.375000E+000 5.375000e+000
Correct Option: C

5.375000 5.375000e+000 5.375000E+000



Your comments will be displayed only after manual approval.