Advertisement
joaoantoniodornelas

Lista 1 - Questão 1.2

Apr 18th, 2015
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.20 KB | None | 0 0
  1.  
  2. No* inverteLista(No* p){
  3.     if(p.prox == NULL)
  4.         return p;
  5.     else{
  6.         while(p->prox->prox != NULL){
  7.             p = p->prox;
  8.         }
  9.  
  10.         p->prox->prox = p;
  11.         p->prox = NULL
  12.  
  13.         return inverteLista(No* p);
  14.         }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement