Tell about the freestore (also known as heap). What is put there? How is this done? How does a program access the freestore? What happens to memory that has been allocated but is no longer needed?

What will be an ideal response?


The freestore is a special area of memory that is reserved for dynamically allocated variables. Any use of the operator new to allocate space will allocate from the freestore. The run-time support package for C++ includes a freestore manager. Operator new causes the freestore manager to allocate memory and return a pointer to the newly allocated memory. The program that has allocated freestore memory should return no longer needed memory to the freestore manager by use of the delete operator on a pointer to the memory.

Computer Science & Information Technology

You might also like to view...

When working with text in a textbox, clicking the ________ button may automatically resize the text so that it fits within a text box

A) Increase Font Size B) Font C) AutoFit D) Paste Options

Computer Science & Information Technology

Which type of device can perform similar functions as a router?

A. layer 2 bridges B. layer 3 switches C. layer 4 hubs D. network layer MAUs

Computer Science & Information Technology

Which of the following supports faster wireless broadband speeds?

A. Satellite B. Wi-MAX C. ISDN D. OC-3

Computer Science & Information Technology

When connecting two switches together, which of the following protocols would be used to trunk multiple VLAN traffic across the same physical link?

A. Porttrunking B. 802.1q C. Port mirroring D. 802.1x

Computer Science & Information Technology