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

What will be the output of the following C code?
Code:
    #include <stdio.h>
    void main()
    {
        register int x = 5;
        m();
        printf("x is %d", x);
    }
    void m()
    {
        x++;
    }
A. 6
B. 5
C. Junk value
D. Compile time error
 

Tìm kiếm

Back
Top