Q120
What happens if a local variable exists with the same name as the global variable you want to access?
A.
Error
B.
The local variable is shadowed
C.
Undefined behavior
D.
The global variable is shadowed
AnswerAnswer: Option D
Solution
Answer: Option D
No explanation is given for this question Let's Discuss on Board