Computer Science, asked by fituber056, 6 hours ago

What is the difference between a+1 and a++ in java ? ​

Answers

Answered by lishika123
4

++i and i++ both increment the value of i by 1 but in a different way. If ++ precedes the variable, it is called pre-increment operator and it comes after a variable, it is called post-increment operator

Answered by rakshakotyan007
4

Answer:

++i and i++ both increment the value of i by 1 but in a different way. If ++ precedes the variable, it is called pre-increment operator and it comes after a variable, it is called post-increment operator.

Similar questions