Gateway Group (India) interview question

For loop in C