Amadeus interview question

What is the difference between memory pointer and stack variables