Skip to main content

Practice ยท 3 of 4

Shadow Reading

CHALLENGE
Difficulty: beginner+25 XP

Implement int shadow_value(void): an outer int v = 10; then an inner block declaring its own int v = 20; โ€” return the OUTER v after the block (so 10).

Back to lesson: Practice: Scope & Storage