24 lines
316 B
C
24 lines
316 B
C
#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);
|
|
}
|