This is what I read and could answer your question: “preincrement (++i
) adds one to the value of i
, then returns i
; in contrast, i++
returns i
then adds one to it, which in theory results in the creation of a temporary variable storing the value of i
before the increment operation was applied”.