View Single Post
Banned
1Mar2011,12:40  
kumarpyasa's Avatar
Hello dear
Pointers and references are the different
1. pointers use the “*” and “->” operators and references use “.“
2. A pointer can be re-assigned any number of times while a reference can not be reassigned after
initialization.
3.A pointer can point to NULL while reference can never point to NULL
4. You can't take the address of a reference like you can with pointers
5. There's no "reference arithmetics" (but you can take the address of an object pointed by a
reference and do pointer arithmetics on it as in &obj + 5).