I never actually cared much about this till now:
What is executed first? the iteration expression or the conditional expression?
Printable View
I never actually cared much about this till now:
What is executed first? the iteration expression or the conditional expression?
for(int i = 0; i < number; i++)
so, initialization, then condition, then loop update.
Oh I understand why I was experiencing trouble now!Quote:
a ; while ( b ) { d; c; }
before i thought the iteration ( c; ) was executed right after b.
thanx