+ 1

Can sombody help me?

I didnt understand increment and decrement! Can sombody explain it?

19th May 2017, 6:32 PM
B. Huber
B. Huber - avatar
2 Antworten
+ 4
increment $×=1; $×++; is the same as $× = $× + 1; decrement $x=1; $x--; is the same as $×= $× -1;
19th May 2017, 7:00 PM
NimWing Yuan
NimWing Yuan - avatar
+ 1
It is short for increasing or decreasing an arithmetic value by 1, this is post increment: $a = 1; $a++; this is pre-increment: ++$a; same with decrement, just replace ++ with --
19th May 2017, 6:41 PM
Jaineshkumar Patel
Jaineshkumar Patel - avatar