Module 03 of 11

Syntax & Basics

Lessons

About This Module

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.

Lessons

5 videos
01

Variables and Data Types

The freeCodeCamp C course chapters on declaring variables and choosing data types. Starts at the 20:56 mark.

02

Printf, Numbers & Constants

The following chapters of the freeCodeCamp course: printing with printf, working with numbers, adding comments, and defining constants. Starts at the 38:32 mark.

03

Variables, Data Types, Operators & Macros

C for Beginners #002: scanf and printf, variables, data types, operators, expressions, and macros in a single lesson.

04

C Format Specifiers: printf() & scanf()

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.

05

scanf Basics

An overview of how to use scanf to accept input from the user in a C program.