Prelude On July 1st, 2009 I received a phone call from a recruitment agent promising to make me “an offer I couldn’t refuse”. I had no clue how he got hold of my name, phone number or place of work but he seemed to have assumed a very strong connection between me and the WPF/MVVM […]
Swap Two Numbers without using Temp Variable
That conclusion is definitely wrong. Your equation expanded equals: b = (a+b) – (a-b) = a+b – a + b = 2*b For your example a=20, b=10b = (20+10) – (20-10) = (30) – (10) = 20b = 20 + 10 – 20 + 10 = 20 A counter example to disprove this: a=75, b=88 b = […]