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

Nam Lê

Member
What will be the output of the following C code?
Code:
    #include <stdio.h>
    void main()
    {
        static int x = 3;
        x++;
        if (x <= 5)
        {
            printf("hi");
            main();
        }
    }
A. Run time error
B. hi
C. Infinite hi
D. hi hi
 

Tìm kiếm

Back
Top