+ 1

How can i write a program which switch contets of two number....please give me the code that needs

content of two number

19th Oct 2017, 10:34 AM
atefeh bahadori
atefeh bahadori - avatar
1 Answer
0
a ^= b; b ^= a; a ^= a; Or use a temp: NumberType tmp; tmp = a; a = b; b = tmp;
19th Oct 2017, 10:50 AM
deFault