Path: utzoo!mnetor!uunet!husc6!bbn!inmet!ishmael!inmet!authorplaceholder From: rgh@inmet.UUCP Newsgroups: comp.lang.c Subject: Re: ANSI rationale has possibly garbled Message-ID: <124200006@inmet> Date: 7 Apr 88 15:28:00 GMT References: <9791@tut.cis.ohio-state.edu> Lines: 26 Nf-ID: #R:tut.cis.ohio-state.edu:-979100:inmet:124200006:000:743 Nf-From: inmet.UUCP!rgh Apr 7 10:28:00 1988 Re garbled sentence in the C Rationale: The first sentence of 3.5.3.1 (which SHOULD be 3.5.4.1), p.53, should read: A pointer declarator may have its own type qualifiers, to specify the attributes of the pointer itself, as opposed to those of the reference type. Given the declarations: int i; volatile int j; const int * a; int * const b = &i; volatile int * const c = &j; a is a (variable) pointer to a constant int -- const qualifies the reference type (int). b is a constant pointer to a (variable) int -- const qualifies the pointer type (int *). c is a constant pointer to a volatile int -- const qualifies the pointer type and volatile qualifies the reference type. Randy Hudson rgh@inmet.uucp {ihnp4,ima}!inmet!rgh