Pregunta de entrevista de Autodesk

Why can ++i be faster than i++?

Respuesta de la entrevista

Anónimo

30 may 2015

i++ stores a temporary variable, which adds weight if you don't need it. However, this is generally negligent in terms of actual performance, but there's no reason to get in the habit of unnecessarily using i++ when ++i will do.

5