Computer Science, asked by fituber056, 1 day ago

Find the value of y if a=3 initially y=a++ + ++a + a; in java​

Answers

Answered by ArchBTW
0

Answer:

y would be 13

Explanation:

firstly a is 3

then y = a++ means y is a only as first a is printed then it is incremented then we are adding it with ++a so a should be 5, so 3+5 should be 8 and then we are again adding it with a so it should be 8 + 5 that is 13.

Similar questions