/* 1. You can assign a pointer on the right-hand-side of an assignment to assign its value to another pointer. 2. When both pointers are the same type, the situation is straightforward. */ #include int main(void) { int x = 99, *p1, *p2; p1 = &x; p2 = p1; printf("p1 = %p p2 = %p\n", p1, p2); //%p is the conversion character for printing pointer printf("*p1 = %d *p2 = %d\n", *p1, *p2); return 0; }