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
How do I reinstall microsoft visual c++?
What is iunknown? Explain some of commonly used methods provided by iunknown.
What is cwinthread class? Explain its advantages.
Do I need microsoft visual c++ 2005 redistributable on my computer?
What is microsoft visual c++ runtime library error?
Difference between getmessage, postmessage & peakmessage.
Is visual c++ a compiler?
What is the difference between turbo c++ and visual c++?
In which Way invoke context-sensitive help inside the editor?
What is microsoft visual c++ 2005 redistributable?
Can I uninstall visual c++?
What is visual c++ redistributable?
Explain the important features of vc++?
What is microsoft visual c++ used for?
Do I need microsoft visual c++ on my computer?