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,

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!