the answer is 18
k=++i + i++ * ++i
first because of (++i) i become 3 then becuse of (i++) again 3 contributes in computation but becuse we have another arithmetic instruction i becomes 4
and again becouse of(++i) i becomes 5.
3 + (3x5) =18
now answer this one
what values for a,b,c,r after below instruction(r=a=b=c=0)
r=++a||b++||++c
--------------------------------------------
Mehdi.:)
|