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

18 13



Your comments will be displayed only after manual approval.