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
Answer:D
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