c_piscine__offshore_mains/c01/ex08.c

33 lines
490 B
C
Raw Normal View History

2023-11-22 18:15:58 +00:00
#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;
2023-11-22 21:34:57 +00:00
int a[21] = {4864, 3701, 20180, -26376, 32663, 15756, -18510, -1899, 9799, 13343, -25186, 7746, 8528, 7746, 11579, 4635, 25883, 23006, 3988, 21611, 26591};
2023-11-22 18:15:58 +00:00
printarr(a, l);
ft_sort_int_tab(a, l);
printarr(a, l);
return (0);
}
void setUp(void)
{
}
void tearDown(void)
{
}