Computer Science, asked by rohitkhaitan21, 1 year ago

what does i+1 do in java ?

Answers

Answered by muakanshakya
0
\huge{heya\: mates!!}
.
.
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.



\huge{THANKS}

Answered by nishita113
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
Similar questions