24 lines
442 B
C
24 lines
442 B
C
#include <stdio.h>
|
|
|
|
void printarr(int *arr, int len)
|
|
{
|
|
int i = 0;
|
|
while (i < len)
|
|
{
|
|
printf("%d ", arr[i]);
|
|
i++;
|
|
}
|
|
printf("\n");
|
|
}
|
|
|
|
void ft_sort_int_tab(int *tab, int size);
|
|
int main(void)
|
|
{
|
|
int l = 21;
|
|
int a[21] = {4864, 3701, 20180, -26376, 32663, 15756, -18510, -1899, 9799, 13343, -25186, 7746, 8528, 7746, 11579, 4635, 25883, 23006, 3988, 21611, 26591};
|
|
printarr(a, l);
|
|
ft_sort_int_tab(a, l);
|
|
printarr(a, l);
|
|
return (0);
|
|
}
|