Computer Science, asked by Mayb811, 1 year ago

Write the statement equivalent to A++ and A__ in java

Answers

Answered by QGP
23
Hey There!!

Here we are talking about Increment/Decrement Operators in Java.

Here,in particular, the question uses Post-Increment or Post-Decrement Operators.


Consider a variable a.

a++ means value of a is increased by 1
So it is equal to a=a+1;



a-- means value of is decreased by 1
So it is equal to a=a-1;



Hope it helps

Purva
Brainly Community

Answered by subuthdmri
16
A++ mean increasing by 1 and A-- mean decreasing by 1
Similar questions