size_t i, same_numbers;
string test = "01234567899";
for ( i = same_numbers = 0; i < test.size(); ( ( test[ i++ ] == test[ i ] ) && same_numbers++ ) );
In this code above, in the VS2015 on debug mode, the "same_numbers" var ends with 1 (which is the correct value), but in release mode, it ends with 11. Why this happens?
Thanks!