IBM interview question

Write a sample code in C programming