Question: What does the following declaration do? CashRegister* register-pointer = new cashRegister; () Allocates one entity: an object on the heap O Allocates one entity: a

What does the following declaration do? CashRegister* register-pointer = new cashRegister; () Allocates one entity: an object on the heap O Allocates one entity: a pointer variable O Allocates two entities: a pointer variable and an object on the heap O Declares but does not allocate two entities: a pointer variable and an object
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
