Einfochips interview question

1.Questions from c programmimg 2.asked to write code of my project