COMP1927 Style (cont)
More allowed C constructs ...
- can use assignment statements in expressions
- but you should continue to avoid other kinds of side-effects
- can use conditional expressions
- but use
x = c ? e1 : e2 with care
- functions may have multiple
return statements
- use very sparingly, primarily for error handling
|