Question: a) If a global variable and a local variable have the same name, how is the global variable referenced inside the function where the local
a) If a global variable and a local variable have the same name, how is the global variable referenced inside the function where the local variable is?
b) Why is it bad coding style to have a global variable and a local variable with the same name?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
