0

What is the difference between a pointer and a reference variable?

16th Sep 2016, 3:45 PM
Shree Nandan Das
Shree Nandan Das - avatar
2 ответов
+ 2
Ultimately they equate to the same meaning. When you make a primitive variable or an object within memory, some people call this variable a "pointer" to the created value or object. Further more a reference is mostly used when refering to object that have been created. Finally like i said these two words are quite similar and can be thrown back and forth for meaning the same thing.
16th Sep 2016, 4:04 PM
Ousmane Diaw
+ 2
Both are similar in that they both hold an address, but there are some differences: http://stackoverflow.com/questions/57483/what-are-the-differences-between-a-pointer-variable-and-a-reference-variable-in
16th Sep 2016, 4:13 PM
Zen
Zen - avatar