Vân Anh Nguyen
Member
What will be the output of the following C code?
A. Segmentation fault
B. main is called twice
C. main is called once
D. main is called thrice
Code:
#include <stdio.h>
void main()
{
register int x = 0;
if (x < 2)
{
x++;
main();
}
}
B. main is called twice
C. main is called once
D. main is called thrice