1.

What will be the output of the following C code?
#include <stdio.h>
void main()
{
register int num = 10;
if (num < 12)
{
num++;
main();
}
}

A. main is called once
B. Segmentation fault
C. main is called thrice
D. main is called twice
E. None of these
Answer» C. main is called thrice


Discussion

No Comment Found

Related MCQs