#include void fun(int a,int b) {int t; t=a;a=b;b=t; } main() {int c[6]={1,2,3,4,5,6},i;for(i=0;i

来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/25 16:32:09
#includevoidfun(inta,intb){intt;t=a;a=b;b=t;}main(){intc[6]={1,2,3,4,5,6},i;for(i=0;i#includevoidfun

#include void fun(int a,int b) {int t; t=a;a=b;b=t; } main() {int c[6]={1,2,3,4,5,6},i;for(i=0;i
#include void fun(int a,int b) {int t; t=a;a=b;b=t; } main() {int c[6]={1,2,3,4,5,6},i;
for(i=0;i

#include void fun(int a,int b) {int t; t=a;a=b;b=t; } main() {int c[6]={1,2,3,4,5,6},i;for(i=0;i
还是1 2 3 4 5 6啊传值调用,传递后的变量在栈上面已经是新的变量了,交换不影响原来的值