Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!husc6!necntc!ames!amdahl!oliveb!sun!guy From: guy@sun.uucp (Guy Harris) Newsgroups: comp.lang.c Subject: Re: char (*a)[] (was: Style [++i vs i++]) Message-ID: <28004@sun.uucp> Date: Tue, 15-Sep-87 00:09:41 EDT Article-I.D.: sun.28004 Posted: Tue Sep 15 00:09:41 1987 Date-Received: Wed, 16-Sep-87 06:31:43 EDT References: <8298@brl-adm.ARPA> <587@cblpe.ATT.COM> <189@xyzzy.UUCP> <5391@utcsri.UUCP> Organization: Sun Microsystems, Inc. - Mtn View, CA Lines: 12 > The ANSI standard must have something about such pointers. Do they > say roughly the same thing about them as I have in the preceding paragraph? Yes. Pointer ineqalities are only valid for pointers that "are members of the same aggregate object", with one exception: "If P points to the last member of an array object, the pointer expression P+1 compares higher than P, even though P+1 does not point to a member of the array object." (3.3.8 Relational operators). -- Guy Harris {ihnp4, decvax, seismo, decwrl, ...}!sun!guy guy@sun.com (or guy@sun.arpa)