Home » C Programming » Operators » Question
  1. What will be the output of the following C function?
    #include <stdio.h>
    void fun(int k);
    int main()
    {
    fun(2);
    }
    void fun(int k)
    {
    if (k > 7)
    return ;
    printf("%d ", k);
    return fun((k++, k));
    }
    1. 2 3
    2. 2 3 4
    3. 2 3 4 5 6 7
    4. 5 6 7
    5. 5 6
Correct Option: C

None of these



Your comments will be displayed only after manual approval.