Beruflich Dokumente
Kultur Dokumente
If originally x=10 and y=5 what is the value of each of the expressions:
1. ++x+y
2.--x+y
3.--x+(++y)
4.--x+y
If originally x=10, y=5, and z=2, evaluate the following expressions to true to false:
5. (x+1)!= y-2
6. !(x + y>20)
7. (x+1==y) || y-1>5
8. z+1>=3 || x+1<z*10 && y+3>7
9. Which of the following are not unary expressions?
a. a+b b. ++a c. a+=1
25. If x = 13 and y = 5, then which of the following expressions produce a false result?
26-28. The int is one of the basic data types that can be manipulated by using the unary ++ operator. */
int main()
{
int a, b, c; // int data type for simple math
a = 9;
c = a + 1 + 1 * 0;
b = ++c;