search
Login

Categories


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

3.8k questions

4k answers

117 comments

10.7k users

0 votes
447 views
asked 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 anonymous

Related questions

1 vote
2 answers 598 views
0 votes
1 answer 294 views
294 views
please explain what is "passing by value", "passing by pointer" and "passing by reference"
asked sagar Expert 12.3k points 7 13 26
1 vote
2 answers 2.3K views
2.3K views
asked daniel Advisor 5.6k points 1 7 14
1 vote
1 answer 101 views
1 vote
1 answer 2.3K views
...