In code that I've seen, a java for loop in the normal style goes as follows:
for(int i = 0; i < n; i++){\\do stuff}
In c++, the equivalent example would be written as follows:
for(int i = 0; i < n; ++i){\\do stuff}
I can't see a reason for the syntax difference. I've read that ++i might be slightly faster which justifies it's use in c++, but then why do we use i++ in java? Also, why don't we call it ++c?
Clarification: I am interested in why the syntax difference has developed differently between the two languages, not what the difference between the two ways of writing the for loop is. From what I can tell this is likely not for practical reasons, but rather historical ones, and I'd like to know what those reasons are.