+ 1
Cam someone clearly explain why 'int &x' takes the value of a not 'int x'
2 Respuestas
0
The ampersand is essentially the memory 'address of' the value.
0
what do you mean?!
u r passing ' a ' into the 'swap' method as the first argument ('int &x')