What is the difference between pointer and reference?
Answer Posted / treker
1. Pointer can refer NULL, refernce cannot be NULL
2. Pointer can derefernce to another address, Reference
once initialized stays that way till it dies.
3. pointer may not associate with a legitimate memory but
References should associate with certain memory.
4. pointer may not be initialized while created but
refernce has to intialized when it is created.
| Is This Answer Correct ? | 50 Yes | 4 No |
Post New Answer View All Answers
What is microsoft visual c++ 2008 redistributable and do I need it?
Do I need microsoft visual c++?
How do I reinstall microsoft visual c++?
Difference between critical section, mutex and semaphore.
What is vc++ programming?
Do I need the microsoft visual c++?
How to create a DLL in C++.net 2005 which we can use in VB 6.0 application ?
Explain pointer to the constant and constant pointer?
Does visual c++ 2017 replace 2015?
What is cmutex? How can we use it?
Is microsoft visual c++ important?
What is microsoft visual c++ 2017 redistributable?
What is the use of microsoft visual c++ 2015 redistributable?
What is the use of message map? Advantages of a message map.
What is a wizard?