C Books Guide and List
C++ Books Guide and List
Best Java Books

3,749 questions

4,049 answers

114 comments

10,705 users

What is the difference between a pointer and a reference?

0 votes
428 views
asked Dec 19, 2010 by anonymous

1 Answer

0 votes
A reference must always refer to some object and, therefore, must always be initialized; pointers do not have such restrictions. A pointer can be reassigned to point to different objects while a reference always refers to an object with which it was initialized.
answered Dec 19, 2010 by anonymous

Related questions

+1 vote
2 answers 576 views
0 votes
1 answer 290 views
290 views asked May 27, 2011 by sagar Expert (12,340 points)
+1 vote
2 answers 2,326 views
2,326 views asked May 29, 2011 by daniel Advisor (5,600 points)
+1 vote
1 answer 98 views
98 views asked May 4, 2010 by anonymous
+1 vote
1 answer 2,310 views
...