Amadeus Interview Question

What is the difference between memory pointer and stack variables