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

0



Your comments will be displayed only after manual approval.