Previous Table of Contents "New C Standard" commentary
If, in the declaration
* type-qualifier-listopt D
and the type specified for
1561 For each type qualifier in the list, ident is a so-qualified pointer.
1562 For two pointer types to be compatible, both shall be identically qualified and both shall be pointers to compatible types.
1563 EXAMPLE The following pair of declarations demonstrates the difference between a variable pointer to a constant value and a constant pointer to a variable value.
const int *ptr_to_constant; int *const constant_ptr;
The contents of any object pointed to by
The declaration of the constant pointer
typedef int *int_ptr; const int_ptr constant_ptr;
Created at: 2008-01-30 02:39:43
The text from WG14/N1256 is copyright © ISO
Created at: 2008-01-30 02:39:43 The text from WG14/N1256 is copyright © ISO