Domanda di colloquio di Morgan Stanley

what is the difference between stack and heap