Computer Science, asked by sivaranjini5610, 10 months ago

explain the increment and decrement operator with at least five example of each ​

Answers

Answered by vermashubham5077934
1

Answer:

Increment is a type of Operand in High Level Programming Language Such as Java.

These types of Operands are used to increment the value or to increase the value.

For Example:-

1)- i++;

2)- b+=2;

3)- b=+2;

4)- i=i+2

Decrement is simply used to Decrease the Value by the Numbers Given after the value

Example:-

1)- i-- (This will Decrement the value by 1) if the integer / Value will be 5 it will become 4.

Similar questions