for(1; 2; 3) 4 executes 1-2-4-3-2-4-3-2 - anyone know why the order is so counter-intuitive?
4
Replying to @hadleywickham
@hadleywickham That is Init, test, body, incr, test, body, incr, test --- seems perfectly fine to me.

Nov 19, 2012 · 11:20 PM UTC

1
Replying to @eddelbuettel
@eddelbuettel yes, but you've been programming in C++ a long time...