Computer Science, asked by nikhilkumishra6777, 1 year ago

Explain the difference between 'operator new' and the 'new' operator?

Answers

Answered by MoonGurl01
26

Hey!! ☺

Here is your answer

_______________________

Operator New :

class Foo

{

public:

void* operator new( size_t );

}

======

New Operator :

Foo* foo = new Foo();

_______________________

Thanks!! ✌

Similar questions