Memory management operators

Explain what are the free store operators or the Memory management operators?

E

Expert

Verified

a) ‘New’ and ‘Delete’ operators are known as the free store operators as they assign the memory dynamically.

b) ‘New’ operator is used in order to form objects of any data type.

Pointer-variable = new data type;

c) Initialization of memory by utilizing the new operator may be done. This may be done as,

Pointer-variable = new data-type (value)

d) ‘Delete’ operator is utilized in order to liberate the memory space for reuse. The usual form of its use is:

Delete pointer-variable;

   Related Questions in C/C++ Programming

©TutorsGlobe All rights reserved 2022-2023.