What will be the output of the following C code? [code] #include <stdio.h> void main() { register int x = 0;

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

Tìm kiếm

Back
Top