3 ms·
Our coding standard was very strict. It was not possible to cheat and save lines by writing, eg: if (func()) a = 1; You had to write: if (func()) a =
by mrb 15y ago
Our coding standard was very strict. It was not possible to cheat and save lines by writing, eg:
if (func()) a = 1;
You had to write:
if (func())
a = 1;
Writing very complex C programs with functions <= 25 lines is definitely possible. All Epita students were routinely doing it!
- codeslush 15y agoI was thinking more along the lines of: if (func()) { a=1; } /* curly braces didn't count in your allocation of LOC, but they would in mine. */
- deleted 15y ago[deleted]