In the first For Loop i++ has a value 0. Hence it simply exits the loop. But now as the value of i has changed to 1. It prints the value 1 outside the loop at the cout statement.
@kingvivek30 .From where did this variable c come. Shouldn’t it be ‘i’.
plzz declare c and its value …what ever it is ?