Question: please do this thank you > Question 4 1 pts Let ptr be a pointer to Circle objects. How can you set it to null?

please do this thank you

please do this thank you > Question 4 1 pts Let ptr

be a pointer to Circle objects. How can you set it to

null? O ptr = NULL; O ptr = null; O ptr =

nullptr: Question 5 1 pts Let ptr be a pointer to Circle

objects. How can you allocate memory for a Circle object at runtime,

> Question 4 1 pts Let ptr be a pointer to Circle objects. How can you set it to null? O ptr = NULL; O ptr = null; O ptr = nullptr: Question 5 1 pts Let ptr be a pointer to Circle objects. How can you allocate memory for a Circle object at runtime, and make ptr point to it. O ptr = new Circle ptr = alloc(Circle): O ptr - Circle(): D Question 6 1 pts Let ptr be a pointer to Circle objects. How can you call getRadius() method of the object that ptr point to? ptr ->getRadius(); ptr.getRadius: Question 7 How can you deallocate memory for a Circle object that ptr points to? Ofree ptr: O ptr = nullptr: delete ptr; Question 8 1 pts Match with the residing memory region. Local variable in a function [Choose] Object created at runtime using new operator [ Choose Global variable [Choose Function parameters [Choose Program in binary format Choose 1 pts Question 8 Match with the residing memory region. Local variable in a function Object created at runtime using new operator [Choose! Choose ] Stack Static memory Heap Code segment Choose Global variable Function parameters Choose Program in binary format [Choose

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!