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

37 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+
$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

Related Questions