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
What does std :: flush do?
How do I exit turbo c++?
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
Why do we need runtime polymorphism in c++?
What is the use of data hiding?
What is c++ map?
Is java based off c++?
Why is c++ considered difficult?
What is basic if statement syntax?
Explain the operation of overloading of an assignment operator.
What is c++ course?
Which is better turbo c++ or dev c++?
What is the outcome of cout< a) 16 b) 17 c) 16.5
What are the various situations where a copy constructor is invoked?
What is the hardest coding language to learn?