[Next] [Prev] [Up] [Top]

11.0 Variables

Variables should have the smallest possible scope (GL)


If a global variable is not used outside its defining module, always prefix it with "static". This helps maintenance programmers understand the scope of its usage (among other things).

Automatic variables should be placed and initialized where used. That is, the C practice of crowding all automatics to the top of a function body is discouraged.


No Title
[Next] [Prev] [Up] [Top]

Generated with CERN WebMaker

This site was grabbed using the TRIAL version of Grab-a-Site. This message does not appear on a licensed copy of Grab-a-Site.