int a = 10;
int* p1 = &a;
int* p2 = p1;
p1 = NULL;
*p2 = 0;
Different pointers point to the same area, when one of the pointers is killed, the thing pointed to by the other pointer will also disappear
int a = 10;
int* p1 = &a;
int* p2 = p1;
p1 = NULL;
*p2 = 0;
Different pointers point to the same area, when one of the pointers is killed, the thing pointed to by the other pointer will also disappear