V

Vinay • 28.75K Points
Instructor II

Q. Which function is used to allocate memory dynamically in C++?

  • (A) malloc()
  • (B) alloc()
  • (C) new
  • (D) calloc()
  • Correct Answer - Option(C)
  • Views: 90
  • Filed under category C++

Explanation by: Vinay
In C++, the 'new' keyword is used to dynamically allocate memory.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.


Question analytics