Barr Group TwitterBarr Group Vimeo


The following C coding rules relate to the use of blank lines in source code:

Rule 3.3.a.) No line of code shall contain more than one statement.

Rule 3.3.b.) There shall be a blank line before and after each natural block of code. Examples of natural blocks of code are loops, if-else and switch statements, and consecutive declarations.

Rule 3.3.c.) Each source file shall have a blank line at the end. (Note: This is for portability, as some compilers require the blank line.)


Appropriate placement of white space provides visual separation and thus makes code easier to read and understand, just as the white space areas between paragraphs of this coding standard aid readability.




These rules shall be enforced during code reviews.

What’s happening and how it’s done. Get in the know.

Sign Up for Our Newsletter

Receive free how-to articles, industry news, and the latest info on Barr Group webinars and training courses via email. 

To prevent automated spam submissions leave this field empty.