8. If x = 4, y = 6, and z = 2, determine whether each of the following evaluates to true or false.
a. if( x == 4)
true
b. if(x != y - z)
false
c. if(z = 1)
true (note the use of the assignment operator, and not the equality operator)
d. if(y)
true
No comments:
Post a Comment