Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Minor changes; reviewed

...

  • No linkage: If an identifier has no linkage, then any further declaration using the identifier declares something new, such as a new variable or a new type.

According to the C Standard Standard, subclause 6.2.2 [ISO/IEC 9899:2011], linkage is determined as follows:

...

The following table identifies the linkage assigned to an object that is declared twice in a single translation unit. The column designates the first declaration, and the row designates the redeclaration.

1st \ 2nd

staticNone

No Linkage

extern

static

Internal

Undefined

InternalNone

No Linkage

UndefinedExternal

No Linkage

External

extern

Undefined

ExternalUndefined

External

Noncompliant Code Example

...