CSC 1100 Lecture Notes - Lecture 10: Ternary Operation, Degree Symbol, Boolean Expression

30 views2 pages

Document Summary

Ca(cid:374) use a(cid:374) (cid:862)or(cid:863) state(cid:373)e(cid:374)t a(cid:374)d (cid:862)a(cid:374)d(cid:863) state(cid:373)e(cid:374)t i(cid:374) a(cid:374) if state(cid:373)e(cid:374)t. When both sides of a or statement is false then the if statement is false static_cast(167: degree symbol, ascii decimal number. Conditional/ternary operator: a ternary operator is an expression with one of two possible values, a ternary operator has a condition that is tested: The operator returns a false-expression: syntax: Short-circuit evaluation: occurs in compound conditions using && (and) or || (or) operators, conditions are evaluated from left to right, when a compound condition, or compound condition within parentheses, connects three or more simple conditions together: With only &&s, as soon as a simple condition evaluates to false, the overall compound condition will be false so evaluation stops. With only ||s, as soon as a simple condition evaluates to true, the overall compound condition will be true so evaluation stops. Is the process of finding and resolving the causes of run-time and logic errors: debugging techniques include:

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers

Related Documents