Kizspy | Question: 36
(Choose 1 answer)
Which of the following statements correctly creates a pointer to an object carl of class Car and allocates
memory dynamically?
A. Car *carPtr = Car();
B. Car *carPtr = new Car();
C. Car carPtr = new Car;
D. Car carPtr = Car;