|
![](/i/fill.gif) |
On Thu, 03 Sep 2009 09:06:16 +0100, Invisible wrote:
> Jim Henderson wrote:
>
>> Maybe the first unis that did this figured people were Pascal-based
>> rather than C-based. (Pascal, IIRC, starts arrays at '1', C starts at
>> '0').
>
> As *I* remember, Pascal arrays start at whatever index you tell them to
> start at. (E.g, you can make the first index be 17 if you want...)
>
> VAR stuff : ARRAY [17..21] OF INT;
I was thinking positions for a string. In Pascal, using the string
"abcdef", position 1 is "a". In C, it's position 0.
Jim
Post a reply to this message
|
![](/i/fill.gif) |