Pergunta de entrevista da empresa Cognizant

Basic programming question related to c.