Pointer Variable Assignment
p2 = p1 changes p2 so that it points to the same variable that p1 already points to.
*p2 = *p1 changes the value of the variable that p2 points to to the value that the variable pointed to by p1 already has.
Previous slide
Next slide
Back to first slide
View graphic version