
Already know some of this? A 2-minute test skips the lessons you know.
Take the placement testA free 25-lesson course built from freeCodeCamp.org's 3h 46m of YouTube video. 3 days at 90 minutes a day, with study notes and a quiz in every lesson. A 2-minute placement test skips what you already know.
Taught by freeCodeCamp.org on YouTube. Videos play in YouTube's own player, so the creator keeps every view.
Understand the scope of the C programming course, including setup, basic syntax, control flow, data types, functions, arrays, pointers, and file I/O.
Install the Xcode command-line tools for the C compiler and the Code::Blocks IDE on macOS.
Identify the roles of #include, the main function, printf, semicolons, and escape sequences; write a program that draws a shape with ordered printf statements.
Declare and initialize int, double, char, and string variables; use them with printf format specifiers (%d, %f, %c, %s) to avoid hard-coded duplication.
Change variable values mid-program; create immutable constants with the const keyword and recognize literal constants in code.
Prompt the user and read integers, doubles, characters, and strings using scanf with the address-of operator (&) for scalar types.
Use fgets to read full lines of text including spaces; understand the trailing newline and how to combine scanf and fgets safely.
Combine variables, scanf, and printf to create an interactive story where the user supplies names and numbers that are inserted into a template.
Declare, initialize, and index arrays; modify individual elements; create uninitialized arrays with a fixed capacity; understand strings as char arrays.
Define void functions with parameters; call functions from main; understand function prototypes and the difference between declaration and definition.
Write functions that return int or double values; use return to exit early; place function prototypes above main to avoid compilation errors.
Construct if/else if/else chains; combine conditions with && and ||; negate conditions with !; compare values using relational operators.
Create a calculator that reads two numbers and an operator character; use if/else if to perform addition, subtraction, multiplication, or division.
Replace if/else chains with switch on a char variable; use case, break, and default to handle operator selection cleanly.
Define a struct template; instantiate multiple structure variables; assign and print member fields; model real-world entities like students or employees.
Write while loops with a condition and increment; avoid infinite loops; understand the do-while variant that checks the condition after the first iteration.
Combine while loops, scanf, and a secret number to create a game; add a guess counter and limit to restrict attempts.
Write compact for loops with initialization, condition, and increment; nest loops to iterate over 2D arrays row by column.
Declare and initialize 2D arrays; access elements with two indices; use nested for loops to print every element in row-major order.
Print variable addresses with %p and &; understand that C accesses data by physical memory address; declare pointer variables to hold addresses.
Use the * operator to read and modify the value at a pointer's address; pass pointers to functions to allow modification of caller variables.
Open a file with fopen in 'w' mode; write formatted lines with fprintf; append new lines with 'a' mode without overwriting existing content.
Open a file in 'r' mode; use fgets in a loop to read each line into a buffer; advance the file pointer automatically until EOF.