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

14



Your comments will be displayed only after manual approval.