Q.

What will be the output of the program? #include<stdio.h>
int i;
int fun();

int main()
{
while(i)
{
fun();
main();
}
printf("Hello\n");
return 0;
}
int fun()
{
printf("Hi");
}

A. hello
B. hi hello
C. no output
D. infinite loop
Answer» A. hello
1.2k
0
Do you find this helpful?
8

Discussion

No comments yet

Related MCQs