i can't run this code of coverting an array into a list : I'm trying to convert an array into a list and this is the code : 


 void tab2list(int n, list **T)
    {
        int t[z];
        int i;
        for (i=0;i<n;i++)
        {

        printf("Entrez l'element %d du tableau\n",i+1);
        scanf("%d",&t[i]);
        insert_end(t[i],&T);
        }

    }
and this is how  i call it in the main function 

tab2list(n,&tete);