daily pastebin goal
62%
SHARE
TWEET

Untitled

a guest Jan 12th, 2019 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. void arv_insere(Arvore **arvore, int numero){
  2.     if (*arvore == NULL){
  3.         *arvore = (Arvore*) malloc (sizeof(Arvore));
  4.         (*arvore)->info = numero;
  5.         (*arvore)->esq = NULL;
  6.         (*arvore)->dir = NULL;
  7.     }
  8.     else{
  9.         if (numero < (*arvore)->info) arv_insere(&(*arvore)->esq, numero);
  10.         if (numero > (*arvore)->info) arv_insere(&(*arvore)->dir, numero);
  11.     }
  12. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top