Concept
What is this concept?
ComputerScienceOne / Comparison Operators
". . . . . . . . . . . . . . . . . . . . . . . . 66 3.1.2. Negation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68 3.1.3. Logical And . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69 3.1.4. Logical Or . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70 3.1.5. Compound Statements . . . . . . . . . . . . . . . . . . . . . . . . 71 3.1.6. Short Circuiting . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74 3.2. The If Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75 3.3. The If-Else Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76 3.4. The If-Else-If Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . 78 3.5. Ternary If-Else Operator . . . . . . . . . . . . . . . . . . . . . . . . . . . 82 3.6. Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82 3.6.1. Meal Discount . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82"
Related Ideas
- What topics are covered in the Loops chapter?ComputerScienceOne · Comparing Elements
- How can comparison operators be used with characters in C?ComputerScienceOne · Comparing Strings and Characters
- How are comparison operators used with characters in C?ComputerScienceOne · Order of Precedence
- What is the order of precedence and associativity of common C operators?ComputerScienceOne · Comparing Strings and Characters
- How does a Comparator determine the order of two elements?ComputerScienceOne · Comparators