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

6



Your comments will be displayed only after manual approval.