有一程序:/*交换两个数的值*/#include <stdio.h>void swap(int *x,int *y){ int *temp; *temp=*x; /*这里temp 为一定义的整型指针,可是还没被赋值,也就是说里面没有存放地址,为何可以用此语句?可以的话,是什么意思呢?*/ *x=*y; *y=*temp;}main(){ int a=10,b=20; swap...
阅读全文
2009
06-01