Lesson 4 / 38
C Syntax
Learn the basic rules of C syntax: semicolons, braces, case sensitivity and comments.
Statements & blocks
Every statement ends with a semicolon ;. Blocks are wrapped in braces { }. Indentation is for humans — the compiler ignores it.
Comments & case
C is case-sensitive: count and Count differ.
// single-line comment
/* multi-line
comment */
int count = 0; // not the same as Count