Originally posted by damodar kumar:
because at first i value is 100, in expression ++i its preincrementing i to 101 and checking with 102 whether it is equal or not , it is not equal so it comes put of loop ans again the i value is 100 only , so it wont print any output
Actually, when it comes out of the "loop", its value is still 101 since nothing else changes i's value or decrements it.