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

5 6



Your comments will be displayed only after manual approval.