www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/08/26/13:18:08

From: "A. Sinan Unur" <asu1 AT cornell DOT edu>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Whatever
Date: Mon, 25 Aug 1997 16:28:53 -0400
Organization: Cornell University http://www.cornell.edu
Lines: 24
Sender: asu1 AT cornell DOT edu (Verified)
Message-ID: <3401EB05.2775@cornell.edu>
References: <19970825183100 DOT OAA00811 AT ladder02 DOT news DOT aol DOT com>
Reply-To: asu1 AT cornell DOT edu
NNTP-Posting-Host: cu-dialup-0012.cit.cornell.edu
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Mike4148 wrote:
> 
> Hey, I'm a veteran. In BTC++ 3.0 the little array index number you
> initialize an array with was the last element number. 

the fact that the lack of memory protection let you get away with
writing to places you should not have does not change the C language.
Given an array of size an, the valid indices into that are array are 0
thru n-1. You can dereference one past the and of the array but you
caanot write there, it belongs to something else.

> I'm not getting the book, by the way :).
> mike4148 AT aol DOT com

your loss.
-- 
   Sinan
 
*******************************************************************
 A. Sinan Unur                                WWWWWW
                                              |--O+O
 mailto:sinan DOT unur AT cornell DOT edu                C   ^ 
 http://www.people.cornell.edu/pages/asu1/     \  ~/ 
*******************************************************************

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019