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
When is dynamic checking necessary?
Is set c++?
What are the advantages of c++? Explain
Describe linked list using C++ with an example.
What is pure virtual function?
Can a list of string be stored within a two dimensional array?
What is an iterator?
What is the difference between an enumeration and a set of pre-processor # defines?
Define a nested class. Explain how it can be useful.
What does 7/9*9 equal ? a) 1 b) 0.08642 c) 0
What are keywords in c++?
What is the use of this pointer in c++?
What is general format for a prototype?
What is data type in c++?
What is the difference between a baller and a reference in C++?