With a compiler ready, it's time to write real C. This module covers the building blocks that every program uses, from the shape of a C file to the values it works with.
It starts with variables and data types, the way C stores integers, decimals, and characters. Then it covers printf, numbers, and constants, followed by operators and expressions. The last lessons focus on format specifiers and scanf, so your programs can print results and read input from the user.
Watch the lessons in order, then continue on to Arrays & Strings.
The freeCodeCamp C course chapters on declaring variables and choosing data types. Starts at the 20:56 mark.
The following chapters of the freeCodeCamp course: printing with printf, working with numbers, adding comments, and defining constants. Starts at the 38:32 mark.
C for Beginners #002: scanf and printf, variables, data types, operators, expressions, and macros in a single lesson.
A beginner-friendly guide to format specifiers, the codes like %d and %f that tell printf and scanf what type of value they are handling.
An overview of how to use scanf to accept input from the user in a C program.