What is the difference between Pointer and a Reference?
When you would use them?

Answer Posted / vinay bondade

A Pointer is not a condt pointer unless you define it in
that way,but a referrence on the contrary is a const
pointer by default and adding to this implementation it is
deferrenced automatically.

Is This Answer Correct ?    1 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are signs of manipulation?

587


Can we make any program in c++ without using any header file and what is the shortest program in c++.

614


What are inline functions? What is the syntax for defining an inline function?

580


What is the copy-and-swap idiom?

604


How did c++ get its name?

569






What is struct c++?

566


How can you specify a class in C++?

796


Explain the auto storage classes in c++.

597


Explain terminate() function?

592


What is a vector c++?

551


What is the type of 'this' pointer? When does it get created?

544


What is data structure in c++?

654


How many types of classes are there in c++?

590


What is implicit conversion/coercion in c++?

650


How does c++ structure differ from c++ class?

584