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
Do I need microsoft visual c++ 2005 redistributable on my computer?
What is a thread (VC++) and state the difference between Cmutex and Csemaphone?
What is vcredist_x86 exe?
Difference between getmessage, postmessage & peakmessage.
Do I need all the microsoft visual c++ redistributable?
hello sir i need movie editing and mixing software .where it is available and what is the site address
Is visual c++ a compiler?
Is it ok to uninstall microsoft visual c++?
What is visual c++ used for?
How do I get rid of microsoft visual c++ runtime library error?
Do I need ms visual c++ on my computer?
What is the difference between an MLE and an SLE?
Does visual c++ 2017 replace 2015?
What is cmutex?
how to declare and populate an array of checkBoxes