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 the difference between turbo c++ and visual c++?
What is a microsoft visual c++ 2008 redistributable?
Explain pointer to the constant and constant pointer? Explain difference between them.
Difference between getmessage, postmessage & peakmessage.
Does visual c++ 2017 replace 2015?
How to create a DLL in C++.net 2005 which we can use in VB 6.0 application ?
Do I need the microsoft visual c++?
hello sir i need movie editing and mixing software .where it is available and what is the site address
What is iunknown? Explain some of commonly used methods provided by iunknown.
How do I install microsoft visual c++ 2015?
What is cmutex? How can we use it?
In which Way invoke context-sensitive help inside the editor?
What is microsoft visual c++ 2017 redistributable?
What is vc++ redistributable?
What is dao in vc ++?