#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>

void ft_rev_int_tab(int *tab, int size)
{
        int     i;
        int     temp;

        i = 0 ;
        while (i < size / 2)
        {
                temp = tab[i];
                tab[i] = tab[size - 1 - i];
                tab[size - 1 - i] = temp;
                i++;
        }
}

int main()
{ 
        int *str;
        int n = 1234;
        str = &n;

        printf("vor: %d\n", *str);
        ft_rev_int_tab(str, 4);
        printf("nach: %d\n", *str);
        return (0);
} //not workin

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: