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 to create a DLL in C++.net 2005 which we can use in VB 6.0 application ?

1758


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

560


Difference between critical section, mutex and semaphore.

632


Explain some of commonly used methods provided by iunknown.

515


Can I uninstall visual c++?

608






What is a microsoft visual c++ 2008 redistributable?

538


What is the Use of the Developer Studio Editor?

2162


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

546


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

656


Where can I find microsoft visual c++?

574


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

699


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

579


how to declare and populate an array of checkBoxes

681


What is the use of message map? Advantages of a message map.

587


What is a wizard?

1780