Operator exercises:
int x;
Assume the following order of operations:
!
&&
||
Give the value of x,
given A = TRUE, B = FALSE, C = TRUE, D = TRUE. E = 10, F = 15
bool x;
13. x = A && B
14. x = C || D
15. x = !C
16. x = !(A && D)
17. x = !C && B
18. x = ( E < 10) && (E == F)
19. x = A && B || C && D
20. x = !(A && B) || !(D && C)
For each of the following problems:
Sample for number 1 is below.
A.
INPUT |
PROCESS |
OUTPUT |
B.
int main()
{
}
C.
num |
square |
cube |
Output |
Get Answers For Free
Most questions answered within 1 hours.