HCLTech interview question

Basic c Programs.