Why is it not necessary to return a variable from a function if the variable is declared as global?

A. You have to return all variables regardless of scope.
B. All functions can see and access global variables.
C. main() gets copies of global variables.
D. Each function gets its own copy of global variables.

B. All functions can see and access global variables.

Computer Science & Information Technology

You might also like to view...

Font styles include bold, italic, and underline

Indicate whether the statement is true or false

Computer Science & Information Technology

You must delete the current value in a cell before you can begin entering a new value

Indicate whether the statement is true or false

Computer Science & Information Technology