题目:若有 int *p1, *p2;,则以下不能正确交换两个指针所指向的值的是( )
A. int temp = *p1; *p1 = *p2; *p2 = temp;
B. int *temp = p1; p1 = p2; p2 = temp;
C. *p1 = *p1 + *p2; *p2 = *p1 - *p2; *p1 = *p1 - *p2;
D. int c; int *temp=&c; *temp = *p1; *p1 = **p2; *p2 = *temp;
答案:评论后可见此内容