in c++ primer
"
void reset(int *ip)
{
*ip = 0;
ip = 0;
}
After a call to reset, the argument is unchanged but the object to which the argument points will be 0:"
I understand that the argument is unchanged, but why the object to which the argument points will be 0? since all you are working on is a copy of the argument pointer, not the argument itself, i think the object to which the argument points should also be unchanged.
Thanks