skip to main | skip to sidebar

My Computer Tricks

Saturday, November 1, 2008

To swap 2 variable values without third variable

a=a+b
b=a-b
a=a-b

a b
2 3
5 2
3
Posted by 康斯坦丁 at 2:27 AM No comments:
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

Blog Archive

  • ►  2014 (1)
    • ►  July (1)
  • ►  2013 (1)
    • ►  January (1)
  • ▼  2008 (4)
    • ▼  November (1)
      • To swap 2 variable values without third variable
    • ►  July (1)
    • ►  June (2)
  • ►  2007 (5)
    • ►  September (1)
    • ►  July (1)
    • ►  June (3)

About Me

康斯坦丁
View my complete profile