A

Admin • 833K Points
Coach

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

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

Explanation by: Admin

In C++, the 'new' keyword is used to dynamically allocate memory.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.