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
What is vcruntime?
Do you need microsoft visual c++?
Is microsoft visual c++ a virus?
What is cwinthread class? Explain its advantages.
What is a wizard?
How do I create an mfc application in vc++?
What is a microsoft visual c++ 2008 redistributable?
In which Way invoke context-sensitive help inside the editor?
Explain the significance of initapplication() in vc++.
Do I need microsoft visual c++?
Do I need the microsoft visual c++?
Do I need ms visual c++ on my computer?
What is ole? How do you handle drag and drop in ole?
What is a copy constructor? What is the need for it?
How do I reinstall visual c++ on windows 10?