Question: Fill in the following table with TRUE or FALSE for the ! boolean expression: ! FALSE TRUE For Your Reference: The following is the Order
- Fill in the following table with TRUE or FALSE for the ! boolean expression:
| ! | FALSE | TRUE |
|
|
|
For Your Reference: The following is the Order of Evaluation precedence:
1. (), ++, --
2. !
3. *, /, %
4. +, -
5. <, <=, >, >=
5. ==, !=
6. &&
7. ||
8. assignment =
(http://faculty.virginia.edu/comp-phys/phys2660/html/references/www.cppreference.com/operator_precedence.html)
- EVALUATE THE FOLLOWING:
Given: x = 2, y = 5, z = 12
x > y
a = x > y
x == z
x != z
- What will be the result of each expression?
int x = 5;
int y = 3;
- ((x < 5) && (y >=2))
- ((x > 5) || (y == 3))
- !(x == 5)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
