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

19



Your comments will be displayed only after manual approval.