Pergunta de entrevista da empresa SUBNET Solutions

How stack allocated memory gets affected when the pointer is returned from the function.