What is the difference between void swap(int &,int&)and void swap (int,int) | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 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
3 Respostas
+ 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