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

Where can I find microsoft visual c++ on my computer?

599


What is vcruntime?

595


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

547


What is microsoft visual c++ 2008 redistributable and do I need it?

546


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

579






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

575


How do you handle drag and drop in ole?

597


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

1729


What is vcredist_x86 exe?

610


What is mfc in vc++?

721


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

656


What is splitter window in vc++?

712


Explain the important features of vc++?

604


What is the difference between an MLE and an SLE?

5730


What is microsoft visual c++ 2005 redistributable?

585