r/ComputerEngineering • u/bl4ck_WEBSITE • 1h ago
[Project] Free C course where Clang compiles your code in the browser: pointers, structs, malloc and linked lists
https://ahm4d.me/learn/c/I made a free C course for people starting out in CompE or EE, because the first week of "install a compiler, fix your PATH" loses a lot of students. Clang compiles C17 to WebAssembly right in the page, so you can write and run code from lesson one.
It's 60 lessons in 12 units: first programs, decisions, loops, arrays, functions, strings, pointers, structs, dynamic memory, data structures (linked lists, stacks, queues), the preprocessor and standard library, and a final unit of harder exercises. Each lesson has examples you can run, practice where you predict output, fix broken code and write your own, plus a short check. Each unit ends with a test.
Honest limits: no files, threads or system calls, long is 32 bits there, and there's no debugger or memory checker, so reading past an array may not crash the way it would on your machine. The course says this where it matters and tells you to move to a real toolchain once you know the basics.
There's a C++ course built the same way too. If you TA an intro C class, I'd like to know which mistakes you see most, so I can add exercises for them.