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 this pointer in c++?
How many standards of c++ are there?
Give the difference between the type casting and automatic type conversion. Also tell a suitable C++ code to illustrate both.
Describe the advantage of an external iterator.
What is the difference between ++ count and count ++?
What do you mean by stack unwinding in c++?
Is dev c++ free?
What happens if a pointer is deleted twice?
Explain differences between new() and delete()?
What is problem with overriding functions?
Can recursive program be written in C++?
How static variables and local variablesare similar and dissimilar?
How do I run a program in notepad ++?
What is wrapper class in c++?
How do you establish an is-a relationship?