Pergunta de entrevista da empresa MathWorks

Given some C source code, show how you would track the scope of all program variables.