Pregunta de entrevista de Cognizant

Basic programming question related to c.