Pergunta de entrevista da empresa General Dynamics

What is the difference between stack and heap