Question
What happens if a local variable exists with the same name as the global variable you want to access?
Answer: Option D
Was this answer helpful ?
If a local variable exists with the same name as the local variable that you want to access, then the global variable is shadowed. That is, preference is given to the local variable.
Was this answer helpful ?
Submit Solution