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

  • (A) malloc()
  • (B) alloc()
  • (C) new
  • (D) calloc()
πŸ’¬ Discuss
βœ… Correct Answer: (C) new
Explanation: In C++, the 'new' keyword is used to dynamically allocate memory.
Explanation by: Vinay
In C++, the 'new' keyword is used to dynamically allocate memory.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
166
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Vinay
Publisher
πŸ“ˆ
81%
Success Rate