What are the difference between reference variables and pointers in C++?



What are the difference between reference variables and pointers in C++?..

Answer / hrpynux@gmail.com

Pointers: A pointer is a variable that holds memory address of another variable. ... References : A reference variable is an alias, that is, another name for an already existing variable. A reference, like a pointer, is also implemented by storing the address of an object.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

when can we use virtual destructor?

7 Answers   HCL, HP, Virage Logic,


What is the object serialization?

0 Answers  


Write a program using GUI concept for the scheduling algorithms in Operating system like SJF,FCFS etc..

0 Answers  


What is capacity in vector in c++?

0 Answers  


Which is the best c++ compiler for beginners?

0 Answers  






Why c++ is created?

0 Answers  


Which is most difficult programming language?

0 Answers  


Show the declaration for a static member variable.

0 Answers  


Why are pointers not used in c++?

0 Answers  


Differentiate between a pointer and a reference with respect to c++.

0 Answers  


How many types of casting are there in C++? When is a dynamic cast,static_cast,reinterpret cast used?

2 Answers   CTS,


How is data hiding achieved in c++?

0 Answers  


Categories