Practical Programming in C
Lecture notes, assignments and projects on the C language: pointers, data structures, memory allocation, multithreading and sockets.
C remains the workhorse of the UNIX operating system and the common language of embedded processors and micro-controllers. This fast-paced course begins with basic syntax and practical programming techniques: writing, compiling and debugging programs, control flow and pointers. It then moves to advanced concepts, including dynamic memory allocation, concurrency and synchronization, UNIX signals and process control, and library development and usage.
What You Will Achieve
- Write, compile and debug C programs
- Use pointers, arrays and user-defined datatypes to build data structures
- Manage dynamic memory allocation and check it with valgrind
- Write multithreaded programs and use external libraries
Program Overview
C Fundamentals
Syntax and everyday techniques.
- Variables, datatypes and operators
- Control flow and functions
- Input and output
- Pointers, arrays and strings
Data Structures
Building larger programs from the basics.
- Structs, unions and bitfields
- Linked lists and binary trees
- Stacks, queues and hash tables
- B-trees and priority queues
Systems Programming
The advanced concepts of the last week.
- C standard library
- Dynamic memory allocation and garbage collection
- Multithreading and concurrency
- Sockets and inter process communication
Course Completion
Job Outlook
C skills apply in software and embedded systems development, including work on operating systems and micro-controllers.
Good for: People who can already program and want a quick, hands-on introduction to C, with many exercises and solutions.
Keep in mind: It was a three-week course, so it moves quickly, and it used a campus UNIX environment that the site does not provide. The final project was done in teams of two.
Bottom line: A fast, practical introduction to C that goes well past the syntax into memory, threads and sockets.
Frequently Asked Questions
Which book does the course recommend?
No text is required, but The C Programming Language by Kernighan and Ritchie is highly recommended, for its concise coverage and exercises.
What projects are included?
The labs include Game of Life and data compression. A final project uses one or more publicly available libraries to accomplish a non-trivial task, in teams of two.
Are there solutions to the assignments?
The assignments table has a column for solutions, with files alongside the problems on topics such as linked lists, hash tables and B-trees.



There are no reviews yet.