Next: Structure of a Up: C Programming Previous: Programming languages

Style

A word of caution: just because C permits you to write obscure code which can do several things in a single line does not mean that you should. On the contrary, good programmers write clean, simple, easily read code which obviously does what it should. This is something you should always be striving to improve.

All code should be commented: comments should appear at least every 4-5 lines and will often be written as a way of producing an outline program, going back later to fill in the C details.



Next: Structure of a Up: C Programming Previous: Programming languages


maspjw@
Tue Sep 27 15:29:34 BST 1994