size_t
is typically an unsigned value. In your for loop condition you're saying i > -1
. Since i
is an unsigned type the -1 is converted to this type, and will have the maximum value for that type.
Because of the promotion you're effectivly comparing 11 (the initial value of i
) with the maximum value for size_t
and the result is false, thus the loop is never entered.