Distinguish between the block variable and the local variable?

A block variable is valid only within the block in which it is defined.  It is not visible outside the block.  It is created when program control enters the block and is destroyed when program control exits the block.

A local variable is visible throughout the function in which it is defined.

Post a Comment

0 Comments