c_piscine__offshore_mains/c01/ex07.c

33 lines
364 B
C
Raw Normal View History

2023-11-22 18:15:58 +00:00
#include <stdio.h>
void ft_rev_int_tab(int *tab, int size);
void printarr(int *arr, int len)
{
int i = 0;
while (i < len)
{
printf("%d ", arr[i]);
i++;
}
}
int main(void)
{
int a[10] = {1, 3, 5, 7, 9, 11, 13, 15, 17};
int l = 9;
printarr(a, l);
printf("\n");
ft_rev_int_tab(a, l);
printarr(a, l);
}
void setUp(void)
{
}
void tearDown(void)
{
}