πŸ“Š C++
Q. What is the purpose of the 'new' operator in C++?
  • (A) To delete memory
  • (B) To allocate memory
  • (C) To initialize variables
  • (D) To define functions
πŸ’¬ Discuss
βœ… Correct Answer: (B) To allocate memory

Explanation: The 'new' operator is used to dynamically allocate memory in C++.

Explanation by: Praveen Singh
The 'new' operator is used to dynamically allocate memory in C++.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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