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

What will be the output of the following C code?
Code:
    #include <stdio.h>
    int x = 5;
    void main()
    {
        int x = 3;
        printf("%d", x);
        {
            x = 4;
        }
        printf("%d", x);
    }
A. Run time error
B. 3 3
C. 3 5
D. 3 4
 

Tìm kiếm

Back
Top