阿杰杰
15 years ago
#include <stdio.h> #include <stdlib.h> int yy = 2; void swap(int xx, int *yy); main(void){ int xx = 3;int tmp ; tmp = xx; xx = yy;
latest #8
阿杰杰
15 years ago
yy = tmp; printf("\n xx = %d ", xx ); // xx = _____ printf("\n yy = %d ", yy ); // yy = _____ xx = tmp + yy; swap( xx, &yy );
阿杰杰
15 years ago
printf("\n yy = %d ", yy ); // yy = _____ system("pause"); } void swap(int xx, int *yy) { int tmp ;tmp = xx; xx = *yy; *yy = tmp;
阿杰杰
15 years ago
printf("\n xx = %d ", xx ); // xx = _____ printf("\n *yy = %d ", *yy ); // *yy = _____ }
立即下載
阿杰杰
15 years ago
其實我最不會第三個YY為什麼是3
徐QQ
15 years ago
沒人回你耶
阿杰杰
15 years ago
有一個
球球球♥
15 years ago
他這邊已經宣告int xx = 3; int tmp ;所以xx=3=tmp 然後 xx = yy; 所以yy=3 應該是這樣吧xD
ㄇㄚˋ ㄐ一ˇ
15 years ago
憶起用facebook巴 ...
back to top