+ 1
Loops parameters
It is good to remember that the parameters can not only be numbers but also logical statements or other variables
1 Odpowiedź
+ 1
It also can be a function call and can changes between iterations that can cause logical errors.
For example in c++ following will never stop:
for (int i = 0; i < vector.size(); ++i)
vector.push_back(i);