- 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
How important is it to understand operators and operator precedence?
You will use the operators in almost every application you create. Operator precedence is critical to understand. As you saw in today's lesson, if you don't understand operator precedence, you might end up with results that are different from what you expect.
Today's lesson covered the binary number system briefly. Is it important to understand this number system? Also, what other number systems are important?
Although it is not critical to understand binary, it is important. With computers today, information is stored in a binary format. Whether it is a positive versus negative charge, a bump versus an impression, or some other representation, all data is ultimately stored in binary. Knowing how the binary system works will make it easier for you to understand these actual storage values.
In addition to binary, many computer programmers work with octal and hexadecimal. Octal is a base-8 number system, and hexadecimal is a base-16 number system. Appendix C, "Understanding Number Systems," covers these systems in more detail.