CHAPTER 6 : Layout
PART 3 : LAYOUT
CHAPTER 6 : Code Layout
6.1 Basic principles of code layout
6.2 Use of Spaces 6.3 Use of blank lines
6.4 Use vertical alignment
6.5 Indentation level 6.6 Line wrapping
6.7 Braces 6.8 Use of parentheses
6.9 Nested single statement
6.10 Empty statements 6.11 'else..if'
6.12 'switch' statements
6.13 'do..while' 6.14 Labels
6.15 Data declarations 6.16 Function declaration
6.17 Preprocessor commands
6.18 Summary
<--Prev page | Next page -->
6.14 Labels
If labels (and consequently goto's) are used, then they should be made clear
by putting them, left-justified, on a line by themselves:
HandleError:
/* code to handle error */
<--Prev page | Next page -->
|