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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Can comments be longer than one line?

830


What is a c++ class?

885


Explain rethrowing exceptions with an example?

812


How is computer programming useful in real life?

806


How can you link a c++ program to c functions?

873


Is oops and c++ same?

806


What programming language should I learn first?

842


How const int *ourpointer differs from int const *ourpointer?

838


What is class definition in c++ ?

838


In which header file does one find isalpha() a) conio.h b) stdio.h c) ctype.h

987


Does std endl flush?

806


Can we make copy constructor private in c++?

836


What is token c++?

791


What is the best c++ book?

1023


how to explain our contribution in the project?

3386