?Which of the following is true about global variables?

A. ?They are declared using the global keyword
B. ?The are declared outside of any functions
C. ?Their lifetime begins the first time they are used
D. ?They are declared right before the opening brace in main


Answer: B

Computer Science & Information Technology

You might also like to view...

C++ stores an array in adjacent memory locations. In what array position (counting from the start) will the element myArray [7][21] be stored in, if myArray has 10 rows and 50 columns?

What will be an ideal response?

Computer Science & Information Technology

Explain why the UPGRADE SOFTWARE display screen would display machines rather than have Cher enter the machine I Ds. In a paragraph, discuss why the display shows records in a CAMPUS/ROOM sequence.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

You place the data you want to use as a column's ____________________ information within the beginning and ending tags.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

FIGURE WD 7-1 Referring to Figure WD 7-1 above, the entry with the words "Type text" is a ____ control.

A. footer B. header C. content D. placeholder

Computer Science & Information Technology