#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/11/05 20:42:52
#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;)就明白了,需要用到引用参数值在函数结束后才会改变,否则不变