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

5 5



Your comments will be displayed only after manual approval.