+ 1
What is the difference between void swap(int &,int&)and void swap (int,int)
what is the use of '&' here ??
4 Answers
+ 8
"address-of" operator, it's in the tutorials! ~_~ (âŠalso, this won't workâŠ)
+ 6
swap(int,int) wont work.
+ 2
some code for demo here
https://code.sololearn.com/ckFKDRje4kGV/?ref=app
:-)