Q. Which of the following is used to allocate memory dynamically in C++?

  • (A) malloc
  • (B) new
  • (C) allocate
  • (D) None of the above
πŸ’¬ Discuss
βœ… Correct Answer: (B) new
Explanation: The 'new' keyword is used for dynamic memory allocation in C++.
Explanation by: Praveen Singh
The 'new' keyword is used for dynamic memory allocation in C++.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
115
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Praveen Singh
Publisher
πŸ“ˆ
87%
Success Rate