Question: The statement int * ptr = new int; acquires memory to hold an integer and then initializes the allocated memory to 0 . assigns an

The statement int *ptr = new int; acquires memory to hold an integer and then
initializes the allocated memory to 0.
assigns an integer value to the variable called ptr.
sets ptr to point to the firlocated memory.
creates a new pointer called int.
None of the above
 The statement int *ptr = new int; acquires memory to hold

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!