How can i write a program which switch contets of two number....please give me the code that needs | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
+ 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 Respuesta
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