what does i+1 do in java ?
Answers
Answered by
0
.
.
HERE IS UR ANSWER
.
i+1 increases the value of the variable i to the point but it will nit show the increase value in the whole program.
but. i++ which is an increment operator increases the value of the variable by 1 which is followed in the whole program.
Answered by
0
hello mate here is your answer
They both increment the number. ++i is equivalent to i = i + 1.
i++ and ++i are very similar but not exactly the same. Both increment the number, but ++i increments the number before the current expression is evaluted , whereas i++increments the number after the expression is evaluated.
hope it may help u
They both increment the number. ++i is equivalent to i = i + 1.
i++ and ++i are very similar but not exactly the same. Both increment the number, but ++i increments the number before the current expression is evaluted , whereas i++increments the number after the expression is evaluated.
hope it may help u
Similar questions
Environmental Sciences,
6 months ago
Physics,
6 months ago
English,
6 months ago
Physics,
1 year ago
Hindi,
1 year ago