0

To sort an entire C-style array in c++ we say, sort(arr, arr + n); where n is the length of array. Why does the function requires one index past the last index in array?

0 Answers0