Pergunta de entrevista da empresa Autodesk

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

Resposta da entrevista

Sigiloso

30 de mai. de 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