+ 3
Actually i am not getting the use of increment or decrement ???
6 Respuestas
+ 5
In what language?
a++
++a
a--
--a
+ 5
As I wrote but with ; at the end. In this way, if you do that only for 'a' variable you can write
++a;
or
--a;
+ 4
increment will increase the variable value by 1 and decrement-- will decrease it by 1
+ 2
In JavaScript..
0
--a decrements a before use
a-- uses a before decrement