I come from a C# background and learning C++ in school. Our programming teacher has us to do iterations with a prefix like this:
for(int i = 0; i < 10; ++i) {}
Teacher says this is way better than using a postfix (with i++) and only makes a difference in C++ loops. He never explained why and I'd love to know.
Anyone can explain me why ++i is better than i++ in C++ loops?






