Posts by João • 1 point
1 post
-
0
votes1
answer207
viewsQ: What are the errors of this chunk of C code that sums the nodes of a binary tree?
int somaFolha(struct NO **Raiz) { int somaF; if (Raiz != NULL) { if (Raiz->esq == NULL || Raiz->dir == NULL) somaF += Raiz->valor; else { somaF = somaFolha((*Raiz).esq); somaF +=…