[Solved] Relation between “new” and “operator new” [closed]
string *ptr = new string(“Hello”); The new operator mainly does two things: It allocates enough memory to hold an object of the type requested. (In the above example, it allocates enough memory to hold this string object) It calls a constructor to initialize an object in the memory that was allocated. Now this “new” is … Read more