Solved

Select All That Apply

Question 16

Multiple Choice

Select all that apply. Which of the following statement(s) about global variables is(are) true?


A) A global variable is accessible only to the main function.
B) A global variable is declared in the highest-level block in which it is used.
C) A global variable can have the same name as a variable that is declared locally within a function.
D) A global variable is the same as a named constant.
E) If a function contains a local variable with the same name as a global variable, the global variable's name takes precedence within the function.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions