what is new operator?define it.
Answers
Answered by
2
When New is used to allocate memory for a C++ class object, the object's constructor is called after the memory is allocated. Use the delete operator to deallocate the memory allocated with the new operator...
hope it helps
hope it helps
Akshaypanigrahi:
thanks bro
Answered by
3
Answer:
The new operator can be defined as an operator which is used to allocate the space in dynamic memory for the storage of data and functions belonging to an object.
Explanation:
Due to this operator, the class is a set of similar objects. Each object of a class possesses same attributes and common behavious defined within the same class.
Similar questions
English,
7 months ago
Math,
7 months ago
Computer Science,
7 months ago
English,
1 year ago
Math,
1 year ago
Social Sciences,
1 year ago
Social Sciences,
1 year ago