注意:此页面搜索的是所有试题
在线试题20上有以下程序#include “stdio.h”void swap(int *x,int *y){ int t;t=*x; *x=*y; *y=t;printf(“%d %d”,*x,*y); }main(){ int a=3,b=5,*p1,*p2; p1=&a;p2=&b;swap(p1,p2);printf(“%d %d”,a,b); }程序段的输出结果是( )
·5 3 5 3
·5 3 3 5
·3 5 5 3
·3 5 3 5

参考答案