From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,25b9eb5c3a89bced X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!news.glorb.com!news-in.ntli.net!newsrout1-win.ntli.net!ntli.net!news.highwinds-media.com!newsfeed.vmunix.org!peer-uk.news.demon.net!kibo.news.demon.net!mutlu.news.demon.net!news.demon.co.uk!demon!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: where exactly c++,c fail and Ada gets thru' Date: Mon, 24 Apr 2006 21:23:44 +0100 Organization: Pushface Message-ID: References: <1145852356.559455.222600@i39g2000cwa.googlegroups.com> <1145855124.720029.35280@t31g2000cwb.googlegroups.com> NNTP-Posting-Host: pogner.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.demon.co.uk 1145910224 23563 62.49.19.209 (24 Apr 2006 20:23:44 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Mon, 24 Apr 2006 20:23:44 +0000 (UTC) Cancel-Lock: sha1:Cei372aJTgc3DmqZG9k8sDvqhN0= User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (darwin) Xref: g2news2.google.com comp.lang.ada:3922 Date: 2006-04-24T21:23:44+01:00 List-Id: "jimmaureenrogers@worldnet.att.net" writes: > The C standard explicitly > allows one to access one element beyond the end of an array to > support common practice in thousands of C programs. The C > standard indicates that accessing more than one beyond the end > of an array leads to undefined behavior. As I remember it, you are allowed to use the address of the element one past the end of the array in a comparison with the addresses of other elements of the same array, but not to access its content?