Programming Language

The C Programming Language

Part I — CS1 concepts in C, emphasizing pointers, manual memory, structs, and error codes.

Part I, Chapters 15–25 (pp. 251–380) of Computer Science I.

Chapters

ChTitlePage
15Basics (Hello World, preprocessor, main(), I/O)253
16Conditionals (comparing strings/chars)271
17Loops283
18Functions (prototypes, pointers, passing by reference, function pointers)291
19Error Handling (language error codes, POSIX, enums for error codes)305
20Arrays (dynamic memory, contiguous 2-D arrays, dynamic data structures)313
21Strings (char arrays, string library, conversions, tokenizing)325
22File I/O (plaintext, binary)335
23Structures (nested, arrays of, factory & to-string functions)341
24Recursion357
25Searching & Sorting (comparator + function pointers, sorting pointers)361

What C Exposes

Typical target: Computer Engineering majors’ CS1.

Citations

[1] Computer Science I, Part I, pp. 251–380.