Why, if `unsigned int i;` is used instead of `int i;` in the code snippet below, does using the function result in a segfault? void insertion_sort_int_array(int * const Ints, unsigned int const len) { unsigned int pos; int key; int i; for (pos = 1; pos < len; ++pos) { key = Ints[pos]; for (i = (pos - 1); (i >= 0) && Ints[i] > key; i--) { Ints[i + 1] = Ints[i]; } Ints[i + 1] = key; } }
以上就是uint as indices的详细内容,更多请关注web前端其它相关文章!