Skip to content

Glossary: C Basics

Compound assignment and ++ / --

Also written: +=, -=, *=, ++, --, increment

Shortcuts that change a variable in place: `bags += 5` means `bags = bags + 5`, `bags++` adds 1 and `bags--` takes 1 away.

Where the book teaches it

Related terms

AssignmentLoop