InterviewSolution
Saved Bookmarks
| 1. |
What is the value of y after evaluating the expression given below? y+ = ++y + y-- + --y; when int y=8 |
|
Answer» 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. |
|