Re: [SILLY-NEWBIE] character arrays

From: Chuck Carson (chuck@EDEN.COM)
Date: 06/06/98


Chuck Reed wrote:
>
> In the array of
>
> char temp[20] [20];
>
> Which one is the length of the string and which one is the index? :)
> ---------------------------------------
> Chuck Reed      | Ash of Dark Horizon |
> master@i-55.com | dh.gator.net 6001   |
> ---------------------------------------
>
>      +------------------------------------------------------------+
>      | Ensure that you have read the CircleMUD Mailing List FAQ:  |
>      | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
>      +------------------------------------------------------------+
Think of the first index as the number of rows, and the second as the
width/depth of each row.

Thus temp[19][19] would point to the last address of the array.

Chuck


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST