Skip to content

Increment Operator

IsaacShelton edited this page Mar 21, 2022 · 1 revision

++ Operator

The ++ operator is used for adding one to a numeric type and storing the result.

If used after the mutable expression, the expression will evaluate to the value of the expression before one was added

variable++

If used before the mutable expression, the expression will evaluate to the value of the expression after one was added

++variable
Clone this wiki locally