How does the for loop function is implemented so that it can accept ; as parameter separator rather than , which is trivial in normal functions.
Uniqueness of for loop
c++;c
The for loop is not a function, the for_each is http://en.cppreference.com/w/cpp/algorithm/for_each which takes , as parameter separator.for is a statement, according to the C++ standard 6.5.3.You can look at a for as a set of actions being performed, like this: for(initialization; condition; expression) at which point they really aren't different parameters, but different statements.