The scope of an automatic variable is:
Answer: D
Correct answer: Both (a) and (b)
An automatic variable is visible from its declaration to the end of the block that contains it, and that includes any blocks nested inside - unless one of them declares another variable of the same name, which shadows it.
Please log in or register to report this question.