Computer Science for IGCSE & O level - Programming (Section 2 - No. 50)

What is the scope of a local variable?
Accessible from anywhere in the program.
Accessible only within the function or block of code where it is declared.
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