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;
*p1 = 30;
How would the output change if you were to replace
with the following?
*p2 = 30;
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here