Previous Table of Contents "New C Standard" commentary
type-name: specifier-qualifier-list abstract-declaratoropt
abstract-declarator: pointer pointeropt direct-abstract-declarator
.COMMENT The redundant spacing is needed to stop LaTex chopping characters off the end of some words and removing white space around keywords. The indentation has also been reduced. .E_COMMENT
( abstract-declarator ) direct-abstract-declarator opt [ assignment-expression opt ] direct-abstract-declarator opt [ type-qualifier-list opt assignment-expression opt ] direct-abstract-declarator opt [ static type-qualifier-list opt assignment-expression ] direct-abstract-declarator opt [ type-qualifier-list static assignment-expression ] direct-abstract-declaratoropt [ * ] direct-abstract-declaratoropt ( parameter-type-listopt )
1625 In several contexts, it is necessary to specify a type.
1626 This is accomplished using a type name, which is syntactically a declaration for a function or an object of that type that omits the identifier.126)
1627 EXAMPLE The constructions
(a) int (b) int * (c) int * (d) int (*) (e) int (*)[*] (f) int *() (g) int (*)(void) (h) int (*const )(unsigned int, ...)
name respectively the types (a)
1628 126) As indicated by the syntax, empty parentheses in a type name are interpreted as function with no parameter specification, rather than redundant parentheses around the omitted identifier.
Created at: 2008-01-30 02:39:44
The text from WG14/N1256 is copyright © ISO
Created at: 2008-01-30 02:39:44 The text from WG14/N1256 is copyright © ISO