Explain memory management operator in c++
Answers
Answered by
0
I have not idea for discussion
Answered by
0
Answer:
new and delete operator
New operator is used to create object of any type .
syntax :pointer variable = new data type ;
Delete operator :
when data object is no longer needed it is destroyed to release the memory space for reuse in c++ for performing this task delete operator is used.
syntax:
delete pointer variable ;
Similar questions
Social Sciences,
8 months ago
Science,
8 months ago
Social Sciences,
8 months ago
Social Sciences,
1 year ago
Social Sciences,
1 year ago