[prev] 56 [next]

C Style Guide

UNSW Computing provides a style guide for C programs:

C Coding Style Guide    (http://wiki.cse.unsw.edu.au/info/CoreCourses/StyleGuide)


Not mandatory for COMP9024, but very useful guideline

  • use proper layout, including indentation
  • keep functios short and break into sub-functions as required
  • use meaningful names (for variables, functions etc)