Home » C Programming » Data Types » Question
  1. What will be the output of the following C code?
     #include <stdio.h>
    int main()
    {
    float f = 'I';
    printf("%f", f);
    return 0;
    }
    1. Compilation Error
    2. I
    3. 73.000000
    4. Runtime Error
    5. None of these
Correct Option: C

Since the ASCII value of I is 73, the same is assigned to the float variable and printed.



Your comments will be displayed only after manual approval.