http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59193
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Also note that even at -O0, at no point during compilation with GCC/G++ if the value of ++a or a++ isn't used and a has integral/pointer type one form is more efficient than the other. It is just a different tree code ({PRE,POST}{IN,DE}CREMENT_EXPR), but with the same operand, type etc. So, there is no waste of any resources, it is not a defect to use either style, it is purely coding convention matter.