C++
Programming and Technical
What is the difference between a pointer and a reference?
Read Solution (Total 1)
-
- A pointer is a variable which stores the address of another variable.Pointers can be reassigned while references cannot.
A reference is a variable which refers to another variable.It can use to refer indirectly to another object
a pointer declaration uses the * operator, a reference declaration uses the & operator. - 7 years agoHelpfull: Yes(0) No(0)
C++ Other Question