Pregunta de entrevista de Citadel

scope of variables in C++, difference between pass by value/reference/pointer