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

400 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+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