Questa è la tua azienda?
Swap two numbers while not using the temp variable.
Anonimo
a = a+b; b = a -b; a= a- b;
using the XOR operator
a = a ^ b b = a ^ b a = a ^ b This will avoid over flows which might come in addition steps
Non lasciarti sfuggire opportunità e informazioni privilegiate seguendo le aziende dove vorresti lavorare.
Ricevi suggerimenti e aggiornamenti personalizzati avviando le tue ricerche.