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

Answer Posted / man

Reference is alias of a variable i.e. a constant pointer
which reference to a variable and can not be NULL.
You can not can get the address of ref. They are used as a
variable.

Pointers are variale that hold address of variable and can
be NULL. And can point to any number of variable.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does std :: flush do?

677


How do I exit turbo c++?

576


What number of digits that can be accuratly stored in a float (based on the IEEE Standard 754)? a) 6 b) 38 c) An unlimited number

771


Why do we need runtime polymorphism in c++?

551


What is the use of data hiding?

585






What is c++ map?

553


Is java based off c++?

523


Why is c++ considered difficult?

636


What is basic if statement syntax?

557


Explain the operation of overloading of an assignment operator.

682


What is c++ course?

572


Which is better turbo c++ or dev c++?

551


What is the outcome of cout< a) 16 b) 17 c) 16.5

619


What are the various situations where a copy constructor is invoked?

597


What is the hardest coding language to learn?

592