Docsity

Values of Expressions with Given Variables, Lecture notes of Computer Programming

Partial preview of the text

Download Values of Expressions with Given Variables and more Lecture notes Computer Programming in PDF only on Docsity!

Question 1 Let: char key = โ€˜Aโ€™; int i = 4, j =6 , k = 9; double x = 12. Please give the values of the following expressions. Expression Equivalent Expression Value (1) i+2==k-1 (i+2)==(k-1)? (2) i+2j>k (i+(2j))>k? (3) โ€˜aโ€™+1==โ€˜bโ€™ (โ€˜aโ€™+1)==โ€˜bโ€™? (4) 25>+x+1.0 25>+(x+1.0)?