A

Admin • 833K Points
Coach

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

  • (A) To delete memory
  • (B) To allocate memory
  • (C) To initialize variables
  • (D) To define functions
  • Correct Answer - Option(B)
  • Views: 21
  • Filed under category C++
  • Hashtags:

Explanation by: Admin

The 'new' operator is used to dynamically allocate memory in C++.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.