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 the extraction operator and what does it do?
what are Access specifiers in C++ class? What are the types?
What is searching?
What is the difference between passing by reference and passing a reference?
Name the implicit member functions of a class.
How long will it take to learn programming?
What does std :: flush do?
Explain public, protected, private in c++?
Explain one-definition rule (odr).
What is public, protected, private in c++?
What is virtual methods?
What is array give example?
What is prototype in c++ with example?
What is the use of this pointer in c++?
Is c++ low level?