Professional Documents
Culture Documents
TESTCASE 2:
Input:
[1, 1, 1, 1, 1], 5
Expected Return Value:
[1, 1, 1, 1, 1]
int main()
{
//int arr[] = {23, 12, 14, 24, 21}, size, ind;
//int arr[] = {1,1,1,1,1,1,1 }, size, ind;
int arr[] = {23, 12, 14, 24, 21, 45, 78, 66, 33, 24, 21}, size, ind;
size = sizeof(arr) / sizeof(arr[0]);
sortArray(arr, size);
for(ind = 0; ind < size; ind++)
printf("%d ", arr[ind]);
return 0;
}
// Errors
// Remove the last {