Q. Which of the following is the correct way to allocate memory dynamically for an integer in C++?
β
Correct Answer: (A)
new int;
Explanation: In C++, the 'new' operator is used to allocate memory dynamically. The correct syntax is 'new int;'.