Can a C++ program designate the exact location where the data variables are placed in memory? Explain.

What will be an ideal response?


The local variables are placed on the stack and global variables are placed on the heap. The exact location is determined by the operating system when the program is executed. The programmer can not dictate where exactly the values are placed.

Computer Science & Information Technology

You might also like to view...

____ help one slide flow gracefully into the next during a slide show.

A. Videos B. Transitions C. Variants D. Shapes

Computer Science & Information Technology

What type of organizational structure does M R E have? What are the implications for M I S?

What will be an ideal response?

Computer Science & Information Technology

Portrait orientation positions text on the page so that the page is wider than it is tall

Indicate whether the statement is true or false

Computer Science & Information Technology

Pathways that support communication among the various electronic components on the system board are called ________.

A. network lines B. gate ways C. logic paths D. bus lines

Computer Science & Information Technology