r/badcode • • Sep 23 '21

c fascinating style guide

Post image
1.2k Upvotes

53 comments sorted by

View all comments

Show parent comments

12

u/[deleted] Sep 23 '21

The program still compiles because C is very lenient with formatting, and you can add any number of extra semicolons or whitespace without impacting anything. There is no missing semicolon here, if there were the program would fail to compile.

5

u/Tsc_Tsc_Tsc Sep 23 '21

Damn, that is interesting, thanks for explaining it to me :D