Increment and decrement statements in Go
1x++
will increase the value of x
by 1.
1x--
will decrease the value of x
by 1.
These are statements, not expression: they do not return a value.
1x++
will increase the value of x
by 1.
1x--
will decrease the value of x
by 1.
These are statements, not expression: they do not return a value.