Question: what is the difference between reference variable and pointer in c++?
Answer: The main difference between C++ Reference vs Pointer is that one is referring to another variable while the latter is storing the address of a variable. References do not make a change in an original variable while if the pointer is changed it does affect the original variable.