[prev] [index] [next]

Layout/Indentation (cont)

Indentation is one way of using blank space.

Another useful method is to leave blank lines between regions of code.

Separate type, variable and function declarations from each other.

Within a function, use blank lines to separate basic blocks in code.

A basic block performs a well-defined action (e.g. corresponding to one line of pseudo-code).