F
fctk
source: http://rm-f.net/~orange/devel/specifications/c89-draft.html#3.1.2.2
there are two passages in this paragraph i can't fully understand:
1) "If the declaration of an identifier for an object or a function
contains the storage-class specifier extern , the identifier has the
same linkage as any visible declaration of the identifier with file
scope. If there is no visible declaration with file scope, the
identifier has external linkage."
in particular: "the identifier has the same linkage as /any/ /visible/
declaration of the identifier with file scope"
2) "If, within a translation unit, the same identifier appears with both
internal and external linkage, the behavior is undefined."
i can't imagine an example of an identifier having both internal and
external linkage...
there are two passages in this paragraph i can't fully understand:
1) "If the declaration of an identifier for an object or a function
contains the storage-class specifier extern , the identifier has the
same linkage as any visible declaration of the identifier with file
scope. If there is no visible declaration with file scope, the
identifier has external linkage."
in particular: "the identifier has the same linkage as /any/ /visible/
declaration of the identifier with file scope"
2) "If, within a translation unit, the same identifier appears with both
internal and external linkage, the behavior is undefined."
i can't imagine an example of an identifier having both internal and
external linkage...