Pregunta de entrevista de AlphaGrep Securities

What is the difference between reference and a pointer in c++.

Respuesta de la entrevista

Anónimo

4 de jul de 2025

in c++, reference is just an alias to the object whose reference is taken, while pointer is a variable that stores the address to some memory space where the value of the object is stored whose pointer is defined,