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

What is dao in vc ++?

543


What is microsoft visual c++ used for?

559


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

606


What is visual c++ runtime error?

592


Can I uninstall visual c++ 2005?

561






Explain the significance of initapplication() in vc++.

652


What is microsoft visual c++ 2015 redistributable?

588


how to declare and populate an array of checkBoxes

676


What is microsoft visual c++ 2005 redistributable?

581


Is visual c++ a compiler?

551


Is it ok to uninstall microsoft visual c++?

588


Does visual c++ 2017 replace 2015?

582


Is visual c++ still used?

558


Do I need microsoft visual c++ 2005 redistributable on my computer?

648


How do I get rid of microsoft visual c++ runtime library error?

665