Question d’entretien chez Morgan Stanley

How to detect where a variable is allocated (HEAP or STACK).

Réponse à la question d'entretien

Utilisateur anonyme

2 oct. 2014

Value-Typed variables are stored in Stack (int, double, char, ...) whereas Reference-Typed variables (arrays, strings ...) are stored in the Heap.