ANSI rationale has possibly garbled

rgh at inmet.UUCP rgh at inmet.UUCP
Fri Apr 8 01:28:00 AEST 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 at inmet.uucp   {ihnp4,ima}!inmet!rgh



More information about the Comp.lang.c mailing list