Newsgroups: comp.lang.c Path: utzoo!henry From: henry@zoo.toronto.edu (Henry Spencer) Subject: Re: Array bounds checking with C???? Message-ID: <1990Aug31.163805.11232@zoo.toronto.edu> Organization: U of Toronto Zoology References: <7611@ucdavis.ucdavis.edu> <26196@mimsy.umd.edu> <988@christopher-robin.cs.bham.ac.uk> Date: Fri, 31 Aug 90 16:38:05 GMT In article <988@christopher-robin.cs.bham.ac.uk> cjr@christopher-robin.UUCP (Chris Ridd ) writes: > Why is this? I never could figure out why accessing the first >element *past* the end of an array should be legal. *Accessing* it is not legal, but taking its address is. This is arguably regrettable, but vast amounts of C code depend on it, and it is not a serious problem to implement. -- TCP/IP: handling tomorrow's loads today| Henry Spencer at U of Toronto Zoology OSI: handling yesterday's loads someday| henry@zoo.toronto.edu utzoo!henry