问答题

#include<stdio.h> void swap(int *P,int*q) { int t; t=*P;*P=*q;*q=t; } main() {int a=10,b=20;swap(&a,&b); printf("%d%d\n",a,b); }

【参考答案】

20,10[解析] #include<stdio.h> void swap(int *P,int *q)/*参数传递......

(↓↓↓ 点击下方‘点击查看答案’看完整答案 ↓↓↓)
热门 试题