www.delorie.com/archives/browse.cgi | search |
From: | Gallicus AT caramail DOT com (Gallicus) |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: ? array[n] or array[n+1] ? |
Date: | Mon, 10 May 1999 15:56:53 GMT |
Organization: | Wanadoo, l'internet avec France Telecom |
Lines: | 15 |
Message-ID: | <373c0195.3902906@news.wanadoo.fr> |
References: | <37367f71 DOT 6271443 AT news DOT wanadoo DOT fr> <3736A098 DOT 55E268BE AT softhome DOT net> |
NNTP-Posting-Host: | b-adsl-nice-1-17.abo.wanadoo.fr |
Mime-Version: | 1.0 |
X-Trace: | wanadoo.fr 926351787 29271 193.251.80.17 (10 May 1999 15:56:27 GMT) |
X-Complaints-To: | abuse AT wanadoo DOT fr |
NNTP-Posting-Date: | 10 May 1999 15:56:27 GMT |
X-Newsreader: | Forte Agent 1.5/32.452 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
On Mon, 10 May 1999 19:02:16 +1000, Chris Mears <chris_mears AT softhome DOT net> wrote: >Because you're overrunning the array. "int bit[63][6]" means that the >first index must be between 0 and 62 inclusive, and the second is >between 0 and 5, inclusive. I don't know why Visual C complains, but >the reason djgpp doesn't is because it trusts you. It assumes you know >what you're doing, and lets you do it uninhibited. > Many thanks, Chris, for the answer. I ought not to have forgotten that because it is very basic, but I was confused by the different reaction of DJGPP and MSVC. Gallicus.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |