Google C++ Style Guideis ignored, the “pre” form (++i) is never less efficient than the “post” form (i++), and is often more efficient. This is because post- increment (or decrement) requires a copy of i to be made, which is pre-increment? The tradition developed, in C, of using post-increment when the expression value is not used, especially in for loops. Some find post-increment easier to read, since the “subject” (i) precedes0 码力 | 83 页 | 238.71 KB | 1 年前3
共 1 条
- 1













