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;
        m();
        printf("%d", x);
    }
    void m()
    {
        x = 8;
        n();
    }
    void n()
    {
        printf("%d", x);
    }
A. 8 3
B. 3 8
C. 8 5
D. 5 3
 

Tìm kiếm

Back
Top