Step Into C · Lesson 3 · Foundations
Operators & Expressions
Arithmetic, integer division, casts, overflow and increment operators.
- ~25 minreading and coding
- 4missions
- 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.
C has the usual arithmetic operators: +, -, *, /, and % (remainder, also called *modulo*).
In this lesson
- Arithmetic
- Integer division truncates
- Casting
- Assignment operators
- Increment and decrement
- Comparison and logic
- Overflow and wrap-around
- Precedence
Missions
- Divide and remainder
- Real division
- Wrap around
- Pre vs post