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

41



Your comments will be displayed only after manual approval.