What is the difference between pointer and reference?

Answer Posted / basudha

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
)u can assign NULL to a pointer.like int *p=NULL; but u
can't assign NULL to a reference.like int
&P=NULL//incorrect.

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you handle drag and drop in ole?

675


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

697


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

633


How you build a project using Developer Studio?

1831


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

622






What is visual c++ used for?

657


Where can I find microsoft visual c++?

650


Difference between critical section, mutex and semaphore.

721


What is splitter window in vc++?

788


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

679


What is iunknown?

638


What is ole? How do you handle drag and drop in ole?

614


How do I reinstall microsoft visual c++?

595


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

758


What is vcruntime?

677