
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
The values of several expressions using given variables char key, int i, int j, int k, and double x. The expressions include comparisons and arithmetic operations.
Typology: Lecture notes
1 / 1
This page cannot be seen from the preview
Don't miss anything!

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)?