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 input operator in c++?

0 Answers  


Write a short code using c++ to print out all odd number from 1 to 100 using a for loop

0 Answers  


What is operators in c++?

0 Answers  


What is difference between rand () and srand ()?

0 Answers  


What is Memory Alignment?

2 Answers   TCS,


What is the purpose of template?

0 Answers  


What are abstract data types in c++?

0 Answers  


which of the following is not an secondary constant a) array b) real c) union

0 Answers  


What is encapsulation in C++? Give an example.

0 Answers   HAL, Honeywell, Zomato,


Explain the volatile and mutable keywords.

0 Answers  


Which programming language is best to learn first?

0 Answers  


Tell me an example where stacks are useful?

0 Answers  


Categories