What is the difference between pointer and reference?
Answer Posted / basudha
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
)u can assign NULL to a pointer.like int *p=NULL; but u
can't assign NULL to a reference.like int
&P=NULL//incorrect.
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
Is microsoft visual c++ a virus?
Explain the important features of vc++?
How do I reinstall visual c++ on windows 10?
How do I change visual code font?
Do I need ms visual c++ on my computer?
What is microsoft visual c++ used for?
How do I uninstall visual c++?
What is microsoft visual c++ 2005 redistributable?
How many microsoft visual c++ do you need?
Explain the significance of initapplication() in vc++.
Can I uninstall visual c++ 2005?
How to create a DLL in C++.net 2005 which we can use in VB 6.0 application ?
Can I uninstall visual c++?
Does visual c++ 2017 replace 2015?
What are the advantages of a message map