Vidyalelo
C Programming · Q124

Function

Programming · C Programming · question 124

Q124

What will be the output of the following C code? #include void main() register int x = 0; if (x < 2) x++; main();

A.
Segmentation fault
Answer
B.
main is called twice
C.
main is called once
D.
main is called thrice

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board