but nevertheless both programs will be terminated as soon as i ==10 , so what diff does it make ?
test it, let's consider the case for i equals 9
in ++i < 10 you increment i (so it's 10) and then you compare which fails
in i++ < 10 you compare which is true since 9 < 10 and then you increment
so for the latter you execute the body one more time
olli
Z
Roshan
Anonymous
Sergiy
Xudoyberdi
Pavel
Kanni
King Phyte 🐍
Al
Yuval