Multiple declarations
If a C program were only allowed to declare each object or function once,
there would be no need for compatible types.
But
linkage
(which allows two or more declarations to refer to the same entity),
function prototypes,
and separate compilation all need such a capability.
Not too surprisingly,
separate translation units (source files)
have different rules for type compatibility
than within a single translation unit.
Next topic:
Separate compilation compatibility
Previous topic:
Compatible and composite types
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 27 April 2004