¡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
1 Respuesta
0
a ^= b;
b ^= a;
a ^= a;
Or use a temp:
NumberType tmp;
tmp = a;
a = b;
b = tmp;