题目内容
swap(int *p1, int *p2) { int p; p = *p1; *p1 = *p2; *p2 = p; } main() { int a = 5, b = 7, *ptr1, *ptr2; ptr1 = &a; ptr2 = &b; swap(ptr1, ptr2); printf("*ptr1 = %d, *ptr2 = %d\n", *ptr1, *ptr2); printf("a = %d, b = %d \n", a, b); }
查看答案
搜索结果不匹配?点我反馈