Find the value of y if a=3 initially y=a++ + ++a + a; in java
Answers
Answered by
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
Social Sciences,
18 hours ago
Computer Science,
18 hours ago
Chemistry,
18 hours ago
English,
1 day ago
English,
8 months ago
Math,
8 months ago