0
what mean (x--)?
7 Respostas
+ 1
decrement -1 the value of x
+ 1
x-- means decrement the value of x by 1
+ 1
which means it will substract 1 value from x.
example: int x=5;
x++ = 5
final x value is 6.
++x = 7.
for decrement operator
x-- = 7
--x = 5
means (++/--)x pre increment/decrement first done the operation then assign to variable
0
x-- means post decrement operator
0
x-- means decrement of x by one
- 1
thanks