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 are Binay tress and B trees? Diff between them?

8 Answers   CTS, GATE, Wipro,


How many standards of c++ are there?

0 Answers  


What is functions syntax in c++?

0 Answers  


How many keywords are used in c++?

0 Answers  


What are the different operators in C++?

3 Answers   HP,






Write a program in c++ to print the numbers from n to n2 except 5 and its multiples

0 Answers   Cankaya University,


What is a Default constructor?

1 Answers  


difference between the c++ and c languages

4 Answers   Wipro,


Can I uninstall microsoft c++ redistributable?

0 Answers  


catch(exception &e) { . . . } Referring to the sample code above, which one of the following lines of code produces a written description of the type of exception that "e" refers to? a) cout << e.type(); b) cout << e.name(); c) cout << typeid(e).name(); d) cout << e.what(); e) cout << e;

2 Answers   Quark,


What is the use of :: operator in c++?

0 Answers  


When does a name clash occur in c++?

0 Answers  


Categories