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

What is public, protected, private in c++?

0 Answers  


What is cout flush?

0 Answers  


Explain differences between new() and delete()?

0 Answers  


What is the difference between public, private, and protected access?

0 Answers  


What is a tree in c++?

0 Answers  






Are c and c++ similar?

0 Answers  


Function can be overloaded based on the parameter which is a value or a reference. Explain if the statement is true.

0 Answers  


What is an incomplete type?

1 Answers  


What is a singleton c++?

0 Answers  


What is the difference between while and do while loop? Explain with examples.

0 Answers  


What are guid?

0 Answers  


How can an improvement in the quality of software be done by try/catch/throw?

0 Answers  


Categories