0

What is the difference between pointers (*) and references (&)?

4th Nov 2016, 9:40 PM
Ruchi Patil
Ruchi Patil - avatar
3 Answers
+ 1
A pointer points to the address, while the reference IS the address.
4th Nov 2016, 11:44 PM
Cohen Creber
Cohen Creber - avatar
0
Ohh That's why a pointer can point to many variables while a reference only points to one variable..
5th Nov 2016, 12:25 PM
Ruchi Patil
Ruchi Patil - avatar
0
Thanks!! 😊
5th Nov 2016, 12:25 PM
Ruchi Patil
Ruchi Patil - avatar