It's helpful to line up trailing comments. Use header comments for each file and function. Include the function's purpose, what parms it takes, what it returns, etc. Explain any tricky code. Comments should be an aid to understanding.
Names Use meaningful identifiers for the names of functions, objects and types.
Avoid single character names except for loop control. Use enumerations to give meaningful names. Scope Minimize the scope of each name, e.g., define variables close to where they are used. Minimize the use of global variables, and clearly define and describe them. Keep the number of parameters to a function as small as possible.