A

Admin • 833K Points
Coach

Q. Which of the following is used to allocate memory dynamically in C++?

  • (A) malloc
  • (B) new
  • (C) allocate
  • (D) None of the above
  • Correct Answer - Option(B)
  • Views: 17
  • Filed under category C++
  • Hashtags:

Explanation by: Admin

The 'new' keyword is used for dynamic memory allocation in C++.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.