C Tutorials
7
Understanding Dynamic Memory Allocation in C
This free C course teaches you how to request and release memory for your C program while it’s running, using standard functions like malloc and free....
Lesson
Makefile Tutorial for C: A guide to build automation and dependency management
Step-by-step Makefile tutorial for C/C++ developers. Learn build automation, dependency management with -MMD flags, pattern rules, static libraries, a...
Lesson
Eliminating Magic Numbers and Boilerplate in C with Preprocessor Macros
C Macros: `#define` Directives, Parameterized Macros, `#` and `##` Operators, Conditional Debugging, and Precedence Pitfalls — Compiled with GCC....
Lesson
Your First C Program: A Delivery Fee Calculator and How to Read What gcc Tells You
A beginner-friendly first C tutorial that builds a courier delivery fee calculator and uses it to explain what gcc does in its preprocessor, compiler ...
Lesson
Arrays and Loops in C: Checking a Vaccine Fridge's Temperature Log
A beginner C tutorial on arrays and for loops that checks a vaccine fridge's temperature log, covering zero-based indexes, sizeof to count elements, t...
Lesson
Reading Keyboard Input in C Without Getting Stuck: scanf, Its Return Value, and fgets
A beginner C tutorial that builds a bike-rental kiosk and shows why a bare scanf freezes or accepts wrong values, then fixes it by checking scanf's re...
Lesson
Reading a Text File in C: Totalling a Bakery's Daily Sales with fopen, fgets and sscanf
A beginner C tutorial that totals a bakery till's daily sales file, showing why an unchecked fopen crashes, how perror explains failures, how fgets an...
C Exams
1C Knowledge Tests
2
C Concepts: Basic Knowledge Test
This test assesses your understanding of fundamental C programming concepts, including memory management, control flow, strings, operators, errors, an...
Test
C Arrays and Strings: Beginner Test
Test your C fundamentals on arrays and strings: sizeof and element counts, integer division, array decay in function parameters, strlen versus sizeof,...