Search This Blog

Saturday, May 26, 2012

swap value without useing 3rd variable

A=3 and B=4    out put  A=4 and B=3

A=A + B     =  3 + 4 = 7

A=7

B=A - B    =7 - 4 = 3

A=A - B  = 7 - 3 = 4

No comments :