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


Please Help Members By Posting Answers For Below Questions

How to create a DLL in C++.net 2005 which we can use in VB 6.0 application ?

1849


hello sir i need movie editing and mixing software .where it is available and what is the site address

1818


What is microsoft visual c++ runtime library error?

639


How do I create an mfc application in vc++?

707


What is microsoft visual c++ 2015 redistributable package x64?

633






What is vcredist?

704


Explain the advantages of cwinthread class.

670


What is visual c++ runtime error?

683


Do I need microsoft visual c++?

638


What is the difference between turbo c++ and visual c++?

622


Is microsoft visual c++ a virus?

755


Is it ok to uninstall microsoft visual c++?

686


What is a copy constructor? What is the need for it?

650


Is visual c++ the same as c++?

673


What is difference between c++ and visual c++?

625