Autodesk Interview Question

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

Interview Answer

Anonymous

May 30, 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