Computer Science, asked by Kananpandey, 1 year ago

what is new operator?define it.

Answers

Answered by Akshaypanigrahi
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

Akshaypanigrahi: thanks bro
Kananpandey: Welcome
Kananpandey: I am sis
Akshaypanigrahi: sorry sis
Kananpandey: No prob
Answered by cyrusbishop
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