Sollicitatievraag bij Intel Corporation

Where are local variables stored in memory? What about dynamically allocated variables (i.e. using malloc)?