Q. Which operator is used for dynamic memory allocation in C++?

  • (A) malloc
  • (B) new
  • (C) alloc
  • (D) allocate
πŸ’¬ Discuss
βœ… Correct Answer: (B) new
Explanation: The 'new' operator is used for dynamic memory allocation in C++.
Explanation by: Shiva Ram
The 'new' operator is used for dynamic memory allocation in C++.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
112
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Shiva Ram
Publisher
πŸ“ˆ
80%
Success Rate