On 1/27/23 04:00, Alex Bennée wrote:
+ for (i = s = 0; i < n; ++i) {Why the pre-increment for ++i here? It doesn't make a difference surely?
Why not? It doesn't make a difference.(Semi-reflexive preference driven by c++, where post-inc operator might (or might not) be less efficient, needing to return a copy of the class with the "old" value. But if you don't know, or don't care about the old value, use the pre-inc form.)
r~