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

Why is that unsafe to deal locate the memory using free( ) if it has been allocated using new?

0 Answers  


How to get the current position of the file pointer?

0 Answers  


Implement strncpy

3 Answers  


Can a program run without main function?

0 Answers  


Can create new c++ operators?

0 Answers  






write infinite loop in C++ which does not use any variable or constant?

3 Answers  


What does it mean to declare a member variable as static?

0 Answers  


What is one dimensional array in c++?

0 Answers  


What is a catch statement?

0 Answers  


How can you find the nodes with repetetive data in a linked list?

1 Answers   Lucent,


Can a program run without main?

0 Answers  


What are the techniques you use for debugging?

1 Answers   Adtran,


Categories