Q:

What is a “new” keyword in C++?

0

What is a “new” keyword in C++?

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

Answer:

In C++, “new” is an operator. It allocates memory for an object or array of objects of type-name from the free store and returns a suitably typed, nonzero pointer to the object.

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

C++ Interview Questions and Answers(2022)

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
What is the difference between new and malloc in c... >>
<< Where we should use this pointer in C++?...