P

Praveen Singh • 36.81K 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: 21
  • Filed under category C++

Explanation by: Praveen Singh
The 'new' keyword is used for dynamic memory allocation in C++.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.


Question analytics