#include void fun(int a, int b) { int t; t=a; a=b; b=t;main() { int c[10]={1,2,3,4,5,6,7,8,9,0), i; for (i=0; i
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/25 16:31:13
#includevoidfun(inta,intb){intt;t=a;a=b;b=t;main(){intc[10]={1,2,3,4,5,6,7,8,9,0),i;for(i=0;i#includ
#include void fun(int a, int b) { int t; t=a; a=b; b=t;main() { int c[10]={1,2,3,4,5,6,7,8,9,0), i; for (i=0; i
#include void fun(int a, int b) { int t; t=a; a=b; b=t;
main()
{ int c[10]={1,2,3,4,5,6,7,8,9,0), i;
for (i=0; i
#include void fun(int a, int b) { int t; t=a; a=b; b=t;main() { int c[10]={1,2,3,4,5,6,7,8,9,0), i; for (i=0; i
答案就是A
void fun(int a,int b) { int t; t=a; a=b; b=t;}你改成void fun(int &a,int &b) { int t; t=a; a=b; b=t;)就明白了,需要用到引用参数值在函数结束后才会改变,否则不变