Extern

From Mesham
Revision as of 00:45, 4 January 2010 by Polas (talk | contribs) (Created page with '== Syntax == extern[location] Where ''location'' is optional == Semantics == Provided as additional allocation type information, this tells the compiler NOT to allocate memor…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Syntax

extern[location]

Where location is optional

Semantics

Provided as additional allocation type information, this tells the compiler NOT to allocate memory for the variable as this has been already done externally. The location argument is optional and just tells the compiler where the variable is to be found (e.g. a C header file) if required.