Comprehensive chapter notes for exam preparation
How a C program is written, compiled, and linked — tokens, main, naming, and translation units
Integer ranks, signed vs unsigned, size_t, promotions, char, and bool — the C type model a first course must own
Arithmetic, comparison, short-circuit, bitwise ops, ++, precedence — and the undefined-behaviour traps C adds on top
if/else, switch and fall-through, the ternary, and writing conditions that stay defined
while, do-while, for, break/continue, off-by-one, and unsigned index traps
Fixed-length arrays, indexing, decay to pointers, 2D arrays, and why sizeof lies after a call
Addresses, *, &, NULL, pointer arithmetic, and the difference between a pointer and the object it names
NUL-terminated char arrays, string.h, buffers, and why strcpy is a loaded footgun
Declarations vs definitions, prototypes, pass-by-value, returning values, and why empty () is not void
printf conversions, scanf traps, getchar/putchar, fgets, and why gets is gone
Block scope, file scope, static, extern, linkage, and the lifetime of automatic vs static objects
struct layout, members, initialization, typedef, and passing structs vs pointers
#include, include guards, macros, conditional compilation, and why the preprocessor is not a module system
Base case, call stack, recursion vs iteration, the Fibonacci trap, and why C will not save a tail call
Standard Java library classes and their methods