␡
- Displaying Basic Information
- Manipulating Variable Values with Operators
- Understanding Punctuators
- Moving Values with the Assignment Operator
- Working with Mathematical/Arithmetic Operators
- Making Comparisons with Relational Operators
- Understanding Logical Bitwise Operators
- Understanding the Type Operators
- Using the sizeof Operator
- Shortcutting with the Conditional Operator
- Understanding Operator Precedence
- Converting Data Types
- Understanding Operator Promotion
- Bonus Material: For Those Brave Enough
- Summary
- Q&A
- Workshop
This chapter is from the book
Using the sizeof Operator
You saw the sizeof operator in action on Day 2. This operator is used to determine the size of a value in memory.
CAUTION
Because the sizeof operator manipulates memory directly, avoid its use, if possible.