阅读背景:

为什么这个声明不工作在java x ^ = y ^ = ^ = y;

来源:互联网 
int x=1;
int y=2;
x ^= y ^= x ^= y;

I am expecting the values to be swapped.But it gives x=0 and y=1. when i tried in C language it gives the correct result.I am exp




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: