COP 3502 Lecture Notes - Lecture 3: Operand, Logical Connective, Logical Conjunction

52 views3 pages

Document Summary

Branching expression"s value. if () { /n } /n else {() () { /n } . /n } if multiple if-else branches, if () { /n } /n else if. Boolean value , meaning either true or false. these values require if and ifelse statements. Floating-point types should not be compared using the equality operators, due to the imprecise representation of floating-point numbers. Operators should not be used with strings. Else if statements can include their own if and else branches; these are called . An ifelse statement is aka dual-alternative selection because the expression can be evaluated in. Do not require else in the beginning of their codes. Nested if-else statements. alternative. one of two ways- the true or false operation. This needs more than one parenthetical terms separated by operators within parenthesis to execute. Precedence rules for logical and relational operators: () ! */%+- <<=>>= == != & | && ||

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