Computer Science for IGCSE & O level - Programming (Section 13 - No. 8)

Which of the following best describes a global variable?
It is only accessible within the procedure it is declared in.
It can be used by any part of the program.
It is declared inside a function.
It has a limited scope within a specific code block.

Explanation

A global variable can be accessed from anywhere within the program.

Comments (0)

Advertisement