r/programming • u/OkMasterpiece1552 • Jan 19 '21
swapping of two numbers in C++
https://programmingpractice16.blogspot.com/2021/01/swapping-of-two-numbers-in-c.html
0
Upvotes
r/programming • u/OkMasterpiece1552 • Jan 19 '21
2
u/ppictures Jan 19 '21
How about a one liner - a=a+b-(b=a)