Question d’entretien chez AlphaGrep Securities

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

Réponse à la question d'entretien

Utilisateur anonyme

4 juil. 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,