Write the output using increment and decrement
x = 1
y = 2
z=3
++ x
+
--y
+
++Z
Answers
Answered by
0
The prefix increment/decrement operator immediately increases or decreases the current value of the variable. This value is then used in the expression. Let's take an example:
y = ++x;
Here first, the current value of x is incremented by 1. The new value of x is then assigned to y. Similarly, in the statement:
Similar questions