Domanda di colloquio di AlphaGrep Securities

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

Risposta di colloquio

Anonimo

4 lug 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,