收起
两个函数都实现不了交换,所以结果还是 1 2 能交换的写法是 void fun3(int *a, int *b) { int t = *a; *a=*b; *b = t; } 主程序 fun3(&a, &b);
报告相同问题?