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 odbc in vc ++?
What is difference between c++ and visual c++?
What is dao in vc ++?
Where can I find microsoft visual c++ on my computer?
What is ole? How do you handle drag and drop in ole?
What is cmutex?
Do I need the microsoft visual c++?
How do I create an mfc application in vc++?
How to create a DLL in C++.net 2005 which we can use in VB 6.0 application ?
Is it safe to uninstall microsoft visual c++ 2008 redistributable?
How many microsoft visual c++ do you need?
What is cwinthread class?
How do I uninstall visual c++?
Does visual c++ 2017 replace 2015?
What is a copy constructor? What is the need for it?