Computer Science, asked by Naveengupta, 1 year ago

Solve the java expression
++x---y+x++,x=9,y=5

Answers

Answered by nitish8089
1
 + + x - \: - - y + x + + \\ 10 \: \: \: \: \: \: \: \: - \: \: \: \: \: \: 4 \: \: \: \: \: \: + \: \: \: \: 10 \\ output \\ 16
if
++x + --y+x
10 + 4 +10
output..
24
Attachments:

Naveengupta: Sry but it is wrong as in my book the options given are 12. 24. 34. 44
nitish8089: but you don't specify language
nitish8089: check code
nitish8089: java version...
nitish8089: 24 may be book had misprint ...
nitish8089: expression is
nitish8089: ++x+ --y+x++
Answered by smrutiranjandeepa
0

Answer:

16

Explanation:

sixteen

Similar questions