Question: Sample problems: evaluate (assuming int x=2, int y=3, and int[] a = {1, 2, 3}). i. 2*x/y + (-2*x)/y ii. (x % y) + (y

Sample problems: evaluate (assuming int x=2, int y=3, and int[] a = {1, 2, 3}).

i. 2*x/y + (-2*x)/y

ii. (x % y) + (y % x)

iii. a[a.length/2]

iv. a[x++]

v. a[1]++

vi. x / y * y / x

vii. x/y + 2.0/y

viii. (x + 2.0)/y

ix. (x+y > 3) == false

x. (x==y)==false

xi. true==false

xii. (int)((1.0*x/y)*10)

xiii. (- y) / x

xiv. a[ a[ x-1 ] ]

xv. x++ + ++y

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!