题目内容
#include void f1(int *p, int *q);void f2(int *p, int *q);int main(){int a=10,b=20;f1(&a,&b);printf("a=%d,b=%d\n",a,b);f2(&a,&b);printf("a=%d,b=%d\n",a,b);return 0;}void f1(int *p, int *q){int t = *p;*p = *q;*q = t;}void f2(int *p, int *q){int *t=p;*p = *q;*q = *t;}
查看答案
搜索结果不匹配?点我反馈