Some help with for loop

I couldn't find out about this anywhere, and couldn't practically check it, so I am asking it here.
In this for loop:
for (int i = 0;i<20;++i)
which, will it stop increasing i if it is equal to 20, or will t increase it just once?
The loop body is executed until the condition becomes false, so it will stop as soon as i reaches 20.
Thanks!!
Nisheeth!I think you know that loop executes until the condtions remains true and in above asked problem the condition shows that the value of "i" is smaller than 20 but greater and equal to 1 thus the values of "i" are 1,2,3,4,5---------,17,18,19 so the last value of "i" is 19.This means that conditions will remain true before 20 at 19
You can also write it as
for (int i=1;i<=19;i++)
Topic archived. No new replies allowed.