例8-3swap3()swap3 (&a, &b);ba12void swap3 (int *px, int *py) int*pt;pypxpt = px;swap3()中直接交换了形参指针px和py的值px = py;py = pt;值传递,形参指针的改变1不会影响实参例8-3 swap3() swap3 (&a, &b); void swap3 (int *px, int *py) { int *pt; pt = px; px = py; py = pt; } a b px py 1 2 值传递,形参指针的改变 不会影响实参 swap3()中直接交换了形参指针px和py的值