Posts by esgualepada • 11 points
1 post
-
1
votes3
answers573
viewsQ: incompatible types when assigning to type ‘tipoNo’ {aka ‘struct tipoNo’} from type ‘tipoNo *’ {aka ‘struct tipoNo *’} arv = inserir(&arv, 5);
I’m trying to implement the method of inserting a binary search tree. This is the struct I’m using typedef struct tipoNo { int chave; struct tipoNo *esq, *dir; //apontadores da esquerda e direita }…