What is the difference between reference type and pointers.
Answer Posted / p.madhupriya
pointer is a variable that points to address of another
variable .
reference is variable that points to address of that
variable only.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is a float in c++?
What is guard code in c++?
Can we delete this pointer in c++?
On throwing an exception by the animal constructor in p = new animalq, can memory leak occur?
Can you overload the operator+ for short integers?
Is the declaration of a class its interface or its implementation?
What does count ++ do in c++?
How are pointers type-cast?
Why is c++ a mid-level programming language?
What are vtable and vptr?
Define a constructor - what it is and how it might be called (2 methods)?
What are the various access specifiers in c++?
How is objective c different from c++?
How the memory management in vectors are being done. What happens when the heap memory is full, and how do you handle it ?
How one would use switch in a program?