31 lines
1.2 KiB
C
31 lines
1.2 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* main.c :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: gbaconni <marvin@42lausanne.ch> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2021/08/09 14:22:56 by gbaconni #+# #+# */
|
|
/* Updated: 2021/08/09 14:42:03 by gbaconni ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#include <stdio.h>
|
|
#include <unistd.h>
|
|
|
|
void ft_sort_int_tab(int *tab, int size);
|
|
|
|
int main(void)
|
|
{
|
|
int tab[4];
|
|
|
|
tab[0] = 31;
|
|
tab[1] = 21;
|
|
tab[2] = 7;
|
|
tab[3] = 12;
|
|
printf("%d,%d,%d,%d\n", tab[0], tab[1], tab[2], tab[3]);
|
|
ft_sort_int_tab(tab, 4);
|
|
printf("%d,%d,%d,%d\n", tab[0], tab[1], tab[2], tab[3]);
|
|
return (0);
|
|
}
|