Which variable has longest scope in following C code?

Which variable has the longest scope in the following C code?

Which variable has the longest scope in the following C code? mcq and its answer is provided on this page.

Which variable has the longest scope in the following C code?

Que. Which variable has the longest scope in the following C code?
a. #include int b; int main() { int c; return 0; } int a;
b. a) a
c. b) b
d. c) c
e. d) Both a and b
Answer: b
Explanation : None.


Comments