Computer Science for IGCSE & O level - Programming (Section 6 - No. 11)

What is the scope of a local variable?
Accessible throughout the entire program.
Accessible within the function or block where it is defined.
Accessible only at the start of the program.
Accessible only at the end of the program.

Explanation

Local variables are only available within their defined region.

Comments (0)

Advertisement