Difference between Reference and Pointer
Difference between Reference and Pointer
- Reference should be initialized and pointer need not be.
- Reference can’t point to NULL and pointer can.
- Reference can’t be changed to some other objects it is once initialized but pointer can be.
- Pointer can be incremented or decremented and subjected to any pointer arithmetic operations, but reference can’t.
0 Comments:
Post a Comment
<< Home