Essay
Given the definitions,
int *p1,*p2;
p1 = new int;
p2 = new int;
You are to compare and contrast the two assignments.
a)p1 = p2;
b)*p1 = *p2
Correct Answer:

Verified
a)Makes p1 point to the same p...View Answer
Unlock this answer now
Get Access to more Verified Answers free of charge
Correct Answer:
Verified
a)Makes p1 point to the same p...
View Answer
Unlock this answer now
Get Access to more Verified Answers free of charge
Related Questions
Q7: Dynamic variables or dynamically allocated variables in
Q8: It is an error to call the
Q9: Give the sequence of steps for creating
Q10: Pointer variables are just memory addresses and
Q11: There should eventually be a call to
Q13: A pointer is a variable that holds
Q14: Write a type definition for pointer variables
Q15: In deep copy,pointers are followed and data
Q16: An array name is a constant pointer
Q17: Give the output from this code fragment:<br>int