Introduction to C
What C is, where it came from, and what you will build in this course.
Start the course to track this lessonBuild a strong programming foundation through structured lessons covering syntax, logic, memory, functions, pointers, data structures and practical programming.
Already have an account? Log in before starting if you want to continue where you left off.
// your first C program #include <stdio.h> int main() { printf( "Hello, Developer Lab!\n" ); return 0; }
C gives you a much closer look at how programs actually operate. You will work with variables, memory, functions, pointers, arrays, structures and files instead of hiding everything behind layers of abstraction.
The goal is not to memorize syntax. The goal is to understand programming well enough to build with it.
57 structured lessons from the fundamentals through the concepts needed to write useful C programs.
What C is, where it came from, and what you will build in this course.
Start the course to track this lessonLearn how C developed and why it became so influential.
Start the course to track this lessonSee the kinds of software that can be built with C.
Start the course to track this lessonUnderstand the compiler, source file, and executable.
Start the course to track this lessonFollow the path from C code to a running program.
Start the course to track this lessonWrite and run the classic first program.
Start the course to track this lessonLearn what the main function does.
Start the course to track this lessonUnderstand why C programs include headers.
Start the course to track this lessonLearn to document code without changing its behavior.
Start the course to track this lessonLearn the basics of formatted output.
Start the course to track this lessonControl how text is printed.
Start the course to track this lessonLearn how programs store values.
Start the course to track this lessonLearn how to represent values that should not change.
Start the course to track this lessonUnderstand int, float, double, and char.
Start the course to track this lessonMatch printf placeholders to data types.
Start the course to track this lessonLet users enter data into a program.
Start the course to track this lessonPerform basic calculations.
Start the course to track this lessonUpdate variables efficiently.
Start the course to track this lessonCompare values to produce true or false results.
Start the course to track this lessonCombine multiple conditions.
Start the course to track this lessonMake a program take a decision.
Start the course to track this lessonHandle two possible paths.
Start the course to track this lessonChoose among multiple conditions.
Start the course to track this lessonSelect a branch using discrete values.
Start the course to track this lessonRepeat code while a condition remains true.
Start the course to track this lessonRun a block at least once before testing the condition.
Start the course to track this lessonUse a compact loop for counted repetition.
Start the course to track this lessonStop a loop early.
Start the course to track this lessonSkip the current loop iteration.
Start the course to track this lessonPlace loops inside other loops.
Start the course to track this lessonStore multiple values under one name.
Start the course to track this lessonProcess every element of an array.
Start the course to track this lessonUnderstand strings as arrays of characters.
Start the course to track this lessonUse common functions from string.h.
Start the course to track this lessonBreak a program into reusable operations.
Start the course to track this lessonPass information into and out of functions.
Start the course to track this lessonTell the compiler about a function before it is called.
Start the course to track this lessonUnderstand where variables can be accessed.
Start the course to track this lessonUnderstand the idea of storing a memory address.
Start the course to track this lessonUse & and * with pointers.
Start the course to track this lessonUse pointers to modify the original variable.
Start the course to track this lessonSee the relationship between arrays and memory addresses.
Start the course to track this lessonModify caller data from inside a function.
Start the course to track this lessonUnderstand memory requested at runtime.
Start the course to track this lessonAllocate and release heap memory safely.
Start the course to track this lessonGroup related values into one custom data type.
Start the course to track this lessonUse dot notation with structures.
Start the course to track this lessonRepresent named integer choices.
Start the course to track this lessonCreate shorter, clearer type names.
Start the course to track this lessonUnderstand why programs use files.
Start the course to track this lessonSave text to a file using fprintf.
Start the course to track this lessonRead data stored in a file.
Start the course to track this lessonUnderstand what happens before compilation proper.
Start the course to track this lessonCreate simple preprocessor substitutions.
Start the course to track this lessonLearn a practical approach to fixing errors.
Start the course to track this lessonBring multiple C concepts together.
Start the course to track this lessonApply the course by building a complete program.
Start the course to track this lessonReading code is not enough. Practice by solving small problems before moving to larger programs.
Ask for a birth year and calculate an approximate age.
Determine whether a number is positive, negative or zero.
Print a number's multiplication table from 1 to 12.