Comment Comment by letney 20+ year C/C++ programmer here. I always use ++x unless the postfix version (x++) provides more succinct code.The postfix operator can incur a temporary variable to be created by the compiler and thus make code slower.Reference: http://www.idinews.com/peeves/prefixIncr.htmlAlso, item #6 from "More Effective C++": http://bin-login.name/ftp/pub/docs/programming_languages/cpp... parent letney 12 years ago
The postfix operator can incur a temporary variable to be created by the compiler and thus make code slower.
Reference: http://www.idinews.com/peeves/prefixIncr.html
Also, item #6 from "More Effective C++": http://bin-login.name/ftp/pub/docs/programming_languages/cpp...