Question: What happens when two blocks, one nested inside of the other, both declare variables with the same identifier? (Assume that the outer block declares its
What happens when two blocks, one nested inside of the other, both declare variables with the same identifier? (Assume that the outer block declares its variable before the opening left-brace of the inner block.) Select one: a. The "outer" variable is irretrievably lost when the "inner" variable is declared. b. The "outer" variable is hidden while the "inner" variable is in scope. c. A syntax error occurs. d. The "inner" declaration is ignored and the "outer" variable has scope even inside the inner block
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
