#include #include #include #define TAB_SIZE 7 void afficheTab(int tab[], int size); int* fibonacci(int n); void print_sizes(); void exercice_4(); int est_permutation(int* tab, int n); int * permutation(int n); char * appliquer_permutation(char * T, int * permutation, int n); int main(int argc, char *argv[]) { /*int i; int *tab = fibonacci(TAB_SIZE); int * tabptr = tab; afficheTab(tab, TAB_SIZE); printf("\n\n"); */ //print_sizes(); //exercice_4(); // int tab[8] = {0, 1, 2, 3, 4, 5, 6, 7}; // printf("%d\n", est_permutation(tab, 8)); /*int * tab = permutation(TAB_SIZE); afficheTab(tab, TAB_SIZE); char bliat[TAB_SIZE] = "Bonjour"; char * bliat_perm = appliquer_permutation(bliat, tab, TAB_SIZE); for (int i=0; i