4 ms·
For loops are "Up to and including". Arrays boundaries are [0..N] -> [0..1000] (1001 element actually, sorry if that confused you). [add]: I could rewrite it
by xentronium 16y ago
For loops are "Up to and including".
Arrays boundaries are [0..N] -> [0..1000] (1001 element actually, sorry if that confused you).
[add]: I could rewrite it in C, it should be trivial bijection, I believe.
- jacquesm 16y agoI suspected as much, but indeed it confused the hell out of me, I've never written a line of pascal so my buffer overflow detector false triggered :)