4 ms·
Pascal had indexes start at 1 if I remember correctly
by rstupek 6y ago
Pascal had indexes start at 1 if I remember correctly
- dvh 6y agoYou remember wrong. var a : array of integer; b : array[0..9] of integer; c : array[1..10] of integer; begin writeln(low(a)); // 0 writeln(high(a)); // -1 writeln(low(b)); // 0 writeln(high(b)); // 9 writeln(low(c)); // 1 writeln(high(c)); // 10 end.
- skocznymroczny 6y agoStrings started at 1 because 0th byte was holding the string length.
- deleted 6y ago[deleted]