Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct list_student * inverser_liste(struct list_student * L)
- {
- // focntion qui inverse une liste
- struct list_student * L2 = (struct list_student *) malloc (sizeof(struct list_student));
- L2 = NULL;
- while(L!=NULL)
- {
- L2= ajout_etudiant(L->Letudiant, L2);
- L = L->suivant;
- }
- return L2;
- };
- int main(){
- struct list_student * liste_etudiant = creer_liste();
- struct list_student * inversee = inverser_liste(liste_etudiant);
- printf("\nListe inversee :\n");
- affiche_liste(inversee);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement