+ 5

can we have better code for swapping two no from this?

https://code.sololearn.com/ca30UB41XtIj/?ref=app

2nd Feb 2018, 1:09 PM
Harsh Namdev
Harsh Namdev - avatar
2 Respostas
+ 9
very interestring way, i didn't see it before 👍 😃
2nd Feb 2018, 1:37 PM
Vukan
Vukan - avatar
+ 2
maybe😉 int temp=b; b=a; a=temp;
2nd Feb 2018, 1:40 PM
Kuba H
Kuba H - avatar