0

what mean (x--)?

15th Oct 2016, 5:41 PM
masih
7 Réponses
+ 1
decrement -1 the value of x
15th Oct 2016, 5:43 PM
Wanderlei Borges
Wanderlei Borges - avatar
+ 1
x-- means decrement the value of x by 1
2nd Nov 2016, 7:44 AM
subhadeep chatterjee
subhadeep chatterjee - avatar
+ 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
2nd Nov 2016, 3:09 PM
syellareddy
0
x-- means post decrement operator
2nd Nov 2016, 3:04 PM
syellareddy
0
x-- means decrement of x by one
2nd Nov 2016, 3:57 PM
subhadeep chatterjee
subhadeep chatterjee - avatar
- 1
thanks
15th Oct 2016, 5:46 PM
masih