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 is string in c++ programming?
what you know about c++?
Who calls main function?
Write a program which uses functions like strcmp(), strcpy()? etc
How should a contructor handle a failure?
What is flag in computer?
Do inline functions improve performance?
What is boyce codd normal form in c++?
What are advantages of using friend classes?
What is abstraction c++?
What are the advantages of inheritance in c++?
Which bit wise operator is suitable for putting on a particular bit in a number?
Is it possible for the objects to read and write themselves?
What is vectorial capacity?
Does c++ have a hash table?