Vidyalelo
C Programming · Q165

Function

Programming · C Programming · question 165

Q165

What will be the output of the following C code? #include 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
Answer
B.
3 8
C.
8 5
D.
5 3

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board