No”if”, No”?", No”switch”, No temp, How to exchange two variables?
Posted on 2011-02-21 15:44 alexkk2011 阅读(106) 评论(0) 编辑 收藏 举报1)
a=a+b;
b=a-b;
a=a-b;
: ( if a and b are too big for computer, that may cause overflow.
2)
a=a^b;
b=a^b;
a=a^b;
: )