What is the difference between pointer and reference?
Answer Posted / praveena
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.
| Is This Answer Correct ? | 30 Yes | 5 No |
Post New Answer View All Answers
What is cwinthread class? Explain its advantages.
Explain the advantages of cwinthread class.
What is cmutex?
Do I need microsoft visual c++ 2005 redistributable on my computer?
What is vcredist?
What is microsoft visual c++ 2015 redistributable?
difference between assert and verify.
How do I uninstall and reinstall microsoft visual c++ runtime libraries?
Do I need all the microsoft visual c++ redistributable?
Explain pointer to the constant and constant pointer? Explain difference between them.
What is a copy constructor? What is the need for it?
Does visual c++ 2017 replace 2015?
Is microsoft visual c++ a virus?
What is microsoft visual c++ used for?
Where can I find microsoft visual c++?