A

Admin • 833K Points
Coach

Q. What is the purpose of the 'new' keyword in C++?

  • (A) To allocate memory on the stack
  • (B) To deallocate memory
  • (C) To allocate memory on the heap
  • (D) To define a constant
  • Correct Answer - Option(C)
  • Views: 29
  • Filed under category C++
  • Hashtags:

Explanation by: Admin

The 'new' keyword in C++ is used to allocate memory on the heap.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.