|
 |
On Thu, 03 Sep 2009 20:56:30 +0100, Orchid XP v8 wrote:
>>> 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.
>
> Probably.
>
> IIRC, in Turbo Pascal, position 0 is the length. (And since it's a
> single byte, no strings longer than 255 characters...)
Yep, Turbo Pascal stored the length rather than using the C method of
null-terminating the string.
Jim
Post a reply to this message
|
 |