fork download
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. typedef struct node {
  4. int categoria;
  5. int atributoOuDecisao;
  6. struct node *prox;
  7. struct node *lista;
  8. } No;
  9.  
  10. No *criaArvore(void){
  11. No *inicio = malloc(sizeof(No));
  12. inicio->atributoOuDecisao = 0;
  13. inicio->categoria = 0;
  14. inicio->lista = NULL;
  15. inicio->prox = NULL;
  16. printf ("inicio criado");
  17. return inicio;
  18. }
  19.  
  20. int main() {
  21. criaArvore();
  22. }
  23.  
  24. //https://pt.stackoverflow.com/q/159173/101
Success #stdin #stdout 0s 4276KB
stdin
Standard input is empty
stdout
inicio criado