Computer Science for IGCSE & O level - Programming (Section 12 - No. 45)
What is the key characteristic of a local variable?
It can be used by any part of the program.
It can't be modified in the program.
It is only accessible within the block in which it is defined.
It can't be used within a procedure.
Explanation
Local variables are only valid in the block they were created.
Comments (0)
