分析程序运行结果#include#define N 5void swap( int x,int y ){ int temp; temp=x; x=y; y=temp;}int main(){ int a[N]={1,2}; printf("%d\t%d",a[0],a[1]); swap( a[0],a[1] ); printf("%d\t%d",a[0],a[1]); return 0;}
发布时间:2024-06-08 22:26:37