Computer Science, asked by ashapanchal1412, 3 months ago

what is reference variable? how it is difference from pointer variable​

Answers

Answered by mausumimitra1
0

Answer:

Pointers: A pointer is a variable that holds memory address of another variable. A pointer needs to be dereferenced with * operator to access the memory location it points to. References : A reference variable is an alias, that is, another name for an already existing variable.

Answered by mantasharahman375
0

Answer:

Pointers: A pointer is a variable that holds memory address of another variable. A pointer needs to be dereferenced with * operator to access the memory location it points to. References : A reference variable is an alias, that is, another name for an already existing variable.

A reference is an alias for another variable whereas a pointer holds the memory address of a variable. References are generally used as function parameters so that the passed object is not the copy but the object itself.

Similar questions