TOC PREV NEXT

3.5 STRUCTURED `C' CODE


A key to well designed and understandable programs.

Use indents, spaces and blank lines, to make the program look less cluttered, and give it a block style.

Comments are essential to clarify various program parts.

Descriptive variable names, and defined constants make the purpose of the variable obvious.

All declarations for the program should be made at the top of the program listing.



Figure 3.14 - Program Structure Examples

TOC PREV NEXT