EECS 183 Lecture Notes - Lecture 7: Increment And Decrement Operators

401 views3 pages
Verified Note
26 Sep 2018
School
Course
Professor

Document Summary

Project 2 is out and due next friday. Expressions are going to be true or false. (a < b) a is equal to b a is not equal to b a is greater than a is less than less than or equal to greater than or equal to. (!a) true if both a and b are true true if at least one of a and b is true not a. Conditions will always be evaluated as true or false (1 < 2 < 3) is evaluated as ((1 < 2) < 3) (1< 3) 1. Need to break it down into individual sets of true and false (3 > 2 > 1) evaluates as ((3 > 2) > 1) (1 > 1) will end up false, you get wrong answer. Moral of the story: one operator at a time! This is the same as saying (iseven == true); or (iseven == false)

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