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

What does obj stand for?

635


What does floor mean in c++?

583


what is the difference between overloading & overriding? give example.

566


Explain what are accessor methods?

673


What is a syntax in c++?

611






Tell me what are static member functions?

616


Which is better c++ or java?

567


How to access a variable of the structure?

585


What is the latest c++ version?

614


What is malloc in c++?

561


How can you tell what shell you are running on unix system?

647


What is a c++ object?

619


What is the copy-and-swap idiom?

612


Why is c++ called oops?

560


Is C++ case sensitive a) False b) Depends on implementation c) True

617