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
How you build a project using Developer Studio?
How to create a DLL in C++.net 2005 which we can use in VB 6.0 application ?
How do I remove microsoft visual c++ 2015 redistributable?
Do I need all the microsoft visual c++ redistributable?
What is cwinthread class?
What is a microsoft visual c++ 2008 redistributable?
Do you need microsoft visual c++?
How do I reinstall visual c++ on windows 10?
Is visual c++ still used?
Is visual c++ the same as c++?
In which Way invoke context-sensitive help inside the editor?
What is microsoft visual c++ redistributable and do I need it?
What is vcredist?
What is visual c++ used for?
What is vcredist_x86 exe?