题目内容
以下代码运行功能是:#include void swap(int *a,int *b){int tmp;tmp=*a;*a=*b;*b=tmp;}void main(){int x,y;int *p_x,*p_y;printf("请输入两个数:\n");scanf("%d",&x);scanf("%d",&y);p_x=&x;p_y=&y;swap(p_x,p_y);printf("x=%d\n",x);printf("y=%d\n",y);}
查看答案
搜索结果不匹配?点我反馈