Re: Pascal Strings
- Posted by David Cuny <dcuny at LANSET.COM> Nov 23, 1998
- 448 views
Adam Weeden wrote: >in pascal strings are stored like this say you have the word PASCAL and it >starts at memory location 13672 (this is an arbitrary no.) > >then the map of the memory would like > >13672 13673 13674 13675 13676 13677 13678 > "P" "A" "S" "C" "A" "L" "\0" > >the "\0" at the end tells it that the string is over. This describes 'C' strings, but I was under the impression that PASCAL strings were stored like FORTH strings - the first byte held the count. That limits the string length to 255 bytes: 13672 13673 13674 13675 13676 13677 13678 6 'P' 'A' 'S' 'C' 'A' 'L' -- David Cuny