Capgemini Interview Question

some questions from c language and some puzzles