IBM Interview Question

Output for given C programming