IBM interview question

Output for given C programming