πŸ“Š C++
Q. What is the purpose of the 'new' keyword in C++?
  • (A) To allocate memory on the stack
  • (B) To deallocate memory
  • (C) To allocate memory on the heap
  • (D) To define a constant
πŸ’¬ Discuss
βœ… Correct Answer: (C) To allocate memory on the heap

Explanation: The 'new' keyword in C++ is used to allocate memory on the heap.

Explanation by: Vikash Gupta
The 'new' keyword in C++ is used to allocate memory on the heap.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
73
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Vikash Gupta
Publisher
πŸ“ˆ
96%
Success Rate