Computer Science for IGCSE & O level - Programming (Section 16 - No. 18)

How do you know if a variable is a local variable?
It is declared within a procedure or function.
It's scope is limited to the program where it is declared.
It is accessible throughout the entire program.
It is declared at the beginning of the program outside any procedure.

Explanation

Local variables are defined within a specific function or procedure.

Comments (0)

Advertisement