i++ vs ++i
++i
will increment the value ofi
, and then return the incremented value.i++
will increment the value ofi
, but return the original value thati
held before being incremented.
Last updated
++i
will increment the value of i
, and then return the incremented value.
i++
will increment the value of i
, but return the original value that i
held before being incremented.
Last updated