πŸ“Š C++
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

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