Home » C Programming » Variables » Question
  1. What will be the output of the following C code?
    #include <stdio.h>
    void main()
    {
    int m = 12;
    float m = 12;
    printf("%d", m)
    }
    1. 12
    2. Compilation Error
    3. 12.000000
    4. Runtime Error
    5. None of these
Correct Option: B

Since the variable m is defined both as integer and as float, it results in an error.



Your comments will be displayed only after manual approval.