Wht is the value of 'y' after evaluating the expression given below ?
y + = ++y + y-- + --y ; when int y = 8
Answers
Answered by
17
it will definitely help u
Attachments:
Answered by
20
The expression y+= ++y + y – – + – –y can be written as y= y+ (++y + y-- + -- y). If initial value of y is 8 then final value of y= 8+ (9 + 9 + 7) = 33.
Similar questions
Math,
5 months ago
Hindi,
5 months ago
Social Sciences,
11 months ago
Math,
11 months ago
Math,
1 year ago