Kizspy Question: 40
(Choose 1 answer)
PUC VERF.JM.COM
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;