Give at least two uses of the * operator. State what the * is doing, and name the use of the * that you present. What is the output produced by the following code? int *p1, *p2; p1 = new int; p2 =...



Give at least two uses of the * operator. State what the * is doing, and


name the use of the * that you present.



What is the output produced by the following code?


int *p1, *p2;


p1 = new int;


p2 = new int;


*p1 = 10;


*p2 = 20;


cout <><><>


p1 = p2;


cout <><><>


*p1 = 30;


cout <><><>


How would the output change if you were to replace


*p1 = 30;


with the following?


*p2 = 30;



May 19, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here