1.

Write a note on Local Scope.

Answer»

1. A local variable is defined within a block. A block of code begins and ends with curly braces { }.

2. The scope of a local variable is the block in which it is defined.

3. A local variable cannot be accessed from outside the block of its declaration.

4. A local variable is created upon entry into its block and destroyed upon exit.



Discussion

No Comment Found