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...

Compare the advantages and disadvantages of graphical navigation and text bars.

What will be an ideal response?

Computer Science & Information Technology

The Open dialog box uses file names to filter the list of files so that it displays only those files that can be opened using the current application.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

Which of the following ports do you need to use with a home theater system?

A) DVI B) FireWire C) SVGA D) HDMI

Computer Science & Information Technology

What’s the difference between an ease-in and an ease-out?

What will be an ideal response?

Computer Science & Information Technology