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));
}

A. 2 3
B. 2 3 4
C. 2 3 4 5 6 7
D. 5 6 7
E. 5 6
Answer» D. 5 6 7


Discussion

No Comment Found

Related MCQs