Names (cont)
A suggested standard for names in C programs:
Use upper-case nouns for constants
- e.g.
MAXROWS , PI , TOLERANCE
Use first char upper-case for types
- e.g.
Vectors , Houses , Coordinates
All others (variables, functions) begin with lower-case letter
- e.g.
sqrt , averageLength , getchar , nlines , i , j
|