Step Into C · Lesson 2 · Foundations
Variables & Types
Named boxes of memory, the built-in types, and printing values with format specifiers.
- ~25 minreading and coding
- 5missions
- membersaccess
- Clanguage
Part of Step Into C. The full lesson, its missions and the real compiler and debugger are in the course. Try a free lesson first to see how it works.
Your computer's memory (RAM) is a huge array of bytes. A byte is 8 bits and can hold one of 256 values (0–255). Every byte has an address, its index in that array.
In this lesson
- Memory is a row of bytes
- The basic types
- Characters are numbers
- Printing values: format specifiers
- Hexadecimal
- sizeof
- const
Missions
- An integer
- A character
- Floating point
- How big is it?
- Think in hex