CSCE 121 Chapter Notes - Chapter 4: Pseudocode, Relational Operator, Semicolon

36 views4 pages

Document Summary

A control structure alters the normal sequential flow of execution in a program. In c++, both ! and != are relational operators. In c++, !, &&, and || are called relational operators. The expression (x >= 0 && x <= 100) evaluates to false if either x < 0 or x >= 100. The logical expression p && q is true if both p and. In c++, && has a higher precedence than ||. The operators != and == have the same order of precedence. A compound statement functions as if it was a single statement. If the expression in an assert statement evaluates to true, the program terminates. In a _selection___ control structure, the computer executes particular statements depending on: selection, sequence looping, repetition. Ans: c: what does <= mean? less than or equal to less than less than or equal to, greater than or equal to, greater than.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents

Related Questions