code.club's Archiver
論壇
›
C/C++
› 二個變數值互換而不用第三者介入
enter
發表於 2015-8-20 14:20:37
二個變數值互換而不用第三者介入
#include <stdio.h>
#include <Stdlib.h>
int main(void){
int x,y;
x = 99;
y= 1234;
x=x^y;
y=y^x;
x=x^y;
printf("%d\n",x);
return 0;
}
頁:
[1]
查看完整版本:
二個變數值互換而不用第三者介入