Home » C Programming » Data Types » Question
  1. What will be the output of the following C code?
    #include <stdio.h>
    void main()
    {
    float num = 0.2;
    printf("%d, ", num);
    printf("%f", num);
    }
    1. Garbage value, 0.200000
    2. 0.200000, Garbage value
    3. Compilation Error
    4. Runtime Error
    5. None of these
Correct Option: A

Garbage value, 0.200000



Your comments will be displayed only after manual approval.