The "Missing:"s below indicate that an entry is incomplete.
| { ... } (9) | block (grouping statements, especially when statements are not expressions) |
| nothing needed | breaking lines (useful when end-of-line and/or indentation has a special meaning) |
| #if 0 ... #endif | commenting (nestable) |
| /* ... */ | commenting (non nestable) |
| < > <= >= | comparison |
| /** ... */ (1) | documentation comment (non nestable) |
| == != | equality / inequality (shallow) |
| ( ... ) | grouping expressions |
| __LINE__ __FILE__ | information about the current line and file |
| case-sensitive | tokens (case-sensitivity (keywords, variable identifiers...)) |
| usually lowercase or underscores, ALL_CAPS for macros | tokens (if case sensitive, what is the standard way for scrunching together multiple words) |
| [_a-zA-Z][_a-zA-Z0-9]* | tokens (variable identifier regexp) |
| = | variable assignment or declaration (assignment) |
| f(a,b,...) | function call |
| f() | function call (with no parameter) |
| typ0 f(typ1 para1, typ2 para2, ...) { ... } | function definition |
| void f(typ1 para1, typ2 para2, ...) { ... } | function definition (procedures) |
| return | function return value (breaks the control flow) |
| continue / break | breaking control flow (continue / break) |
| goto | breaking control flow (goto (unconditional jump)) |
| return | breaking control flow (returning a value) |
| if (c) b | if_then |
| if (c) b1 else b2 | if_then_else |
| c ? b1 : b2 | if_then_else |
| do {expr} while (!cond) | loop (do something until condition) |
| for | loop (for "a la C" (while + initialisation)) |
| for (int i = 10; i >= 1; i--) expr | loop (for each value in a numeric range, 1 decrement) |
| for (int i = 1; i <= 10; i++) expr | loop (for each value in a numeric range, 1 increment (see also the entries about ranges)) |
| for (int i = 1; i <= 10; i += 2) expr | loop (for each value in a numeric range, free increment) |
| while (cond) expr | loop (while condition do something) |
switch (val) {
case v1: expr1; break;
case v2: case v3: expr23; break;
default: expr_else;
} | multiple selection (switch) |
| , | sequence |
| ; | sequence |
| t v | annotation (or variable declaration) |
| (t) e | cast (upcast) |
| typedef t n | declaration |
| it is the default | mutability, constness (type of a mutable value) |
| s[n] | accessing n-th character |
| (char) c | ascii to character |
| 'z' | character "z" |
| (int) c | character to ascii |
| char | character type name |
| strndup(s + n, len) | extract a substring |
| strstr / strchr / index | locate a substring |
| / strrchr / rindex | locate a substring (starting at the end) |
"...\n" "...\n" | multi-line |
| puts | simple print (on strings) |
| printf | simple print (printf-like) |
| sprintf | sprintf-like |
| strcat | string concatenation |
| strcmp | string equality & inequality |
| strlen | string size |
| "\n" | strings (end-of-line (without writing the real CR or LF character)) |
| "..." | strings (verbatim) |
| char[] | type name |
| toupper / tolower | upper / lower case character |
Missing:
strings (with interpolation)
serialize (marshaling)
unserialize (un-marshaling)
| NULL / 0 / '\0' | false value |
| ! | logical not |
| || / && | logical or / and (short circuit) |
| anything not false | true value |
| { a, b, c } (67) | list constructor |
| a[i] | list/array indexing |
| NULL | optional value (null value) |
| v | optional value (value) |
| . | record selector |
| -> | record selector |
| & | reference (pointer) (creation) |
| * (78) | reference (pointer) (dereference) |
| -> (80) | reference (pointer) (dereference) |
| + / - / * / / | addition / subtraction / multiplication / division |
| & / | / ^ | bitwise operators (and / or / xor) |
| << / >> | bitwise operators (left shift / right shift / unsigned right shift) |
| ~ | bitwise operators (negation) |
| div ldiv lldiv | euclidian division (both quotient and modulo) |
| pow | exponentiation (power) |
| log / log10 | logarithm |
| % | modulo (modulo of -3 / 2 is -1) |
| - | negation |
| 1000., 1E3 | numbers syntax (decimals) |
| 07, 0xf | numbers syntax (integers in base 2, octal and hexadecimal) |
| 1000 | numbers syntax (integers) |
| mathematical | operator priorities and associativities (addition vs multiplication) |
| sqrt / exp / abs | square root / e-exponential / absolute value |
| sin / cos / tan | trigonometry (basic) |
| asin / acos / atan (88) | trigonometry (inverse) |
| trunc / round / floor / ceil | truncate / round / floor / ceil |
| float, double | type name (decimal) |
| short, int, long | type name (integers) |
Missing:
random (random number)
random (seed the pseudo random generator)