+ 1

What is the difference between void swap(int &,int&)and void swap (int,int)

what is the use of '&' here ??

10th Jan 2017, 8:06 PM
Siddharth Naithani
Siddharth Naithani - avatar
4 Respuestas
+ 8
"address-of" operator, it's in the tutorials! ~_~ (…also, this won't work…)
10th Jan 2017, 8:46 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 6
swap(int,int) wont work.
10th Jan 2017, 8:34 PM
ifl
ifl - avatar
10th Jan 2017, 9:20 PM
ifl
ifl - avatar