998 m/s. 22. If x = 20 and y = 10 then determine the result of following statements : (i) x += y (ii) x = y (iii) x %= y (iv) * - = b (v) *= y (vi) x/= y 23. What will be the result of following eynressions ?
Answers
Answered by
1
Question:
int x = 20 ;
int y = 10 ;
(i) x += y
Output : 30
(ii) x = y
Output : 10
(iii) x %= y
Output : 0
(iv) x -= y
Output : -10
(v) x *= y
Output : -100
(vi) x /= y
Output : -10
(Note : These outputs are computer generated)
Similar questions
India Languages,
15 hours ago
Science,
15 hours ago
Math,
15 hours ago
Social Sciences,
8 months ago
Math,
8 months ago