What is the difference between pointer and reference?

Answer Posted / praveena

A reference must always refer to some object and,
therefore, must always be initialized;
pointers do not have such restrictions. A pointer can be
reassigned to point to different
objects while a reference always refers to an object with
which it was initialized.

Is This Answer Correct ?    30 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I reinstall visual c++ on windows 10?

639


What is a thread (VC++) and state the difference between Cmutex and Csemaphone?

684


What is microsoft visual c++ 2005 redistributable?

669


What is visual c++ runtime?

660


What is cmutex? How can we use it?

647






Difference between getmessage, postmessage & peakmessage.

687


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

679


What is mfc in vc++?

787


Explain some of commonly used methods provided by iunknown.

590


How can we use cmutex?

646


Is microsoft visual c++ a virus?

755


Explain the important features of vc++?

684


What is microsoft visual c++ 2017 redistributable?

628


What is vcruntime?

677


how to declare and populate an array of checkBoxes

778