Sollicitatievraag bij Tata Consultancy Services

c language basic program question, dangling pointer