Frage im Vorstellungsgespräch bei Tata Consultancy Services

c language basic program question, dangling pointer