Write the statement equivalent to A++ and A__ in java
Answers
Answered by
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 a is decreased by 1
So it is equal to a=a-1;
Hope it helps
Purva
Brainly Community
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 a is decreased by 1
So it is equal to a=a-1;
Hope it helps
Purva
Brainly Community
Answered by
16
A++ mean increasing by 1 and A-- mean decreasing by 1
Similar questions