Home » C Programming » Variables » Question
  1. What will be the output of the following C code?
    #include <stdio.h>
    void main()
    {
    fun();
    fun();
    }
    void fun()
    {
    static int R = 10;
    R++;
    printf("%d ", R);
    }
    1. 10 11
    2. 11 10
    3. 12 11
    4. 11 12
    5. None of these
Correct Option: D

11 12



Your comments will be displayed only after manual approval.