PUERTA | PUERTA-CS-2004 | Pregunta 43
Considere el siguiente segmento de programa C struct CellNode { struct CelINode *leftchild; int element; struct CelINode *rightChild; } int Dosomething(struct CelINode *ptr) { int value = 0; if (ptr != NULL) { if (ptr->leftChild != NULL) value = 1 + DoSomething(ptr->leftChild); if (ptr->rightChild != NULL) value = max(value, 1 + DoSomething(ptr->rightChild)); } return … Continue reading «PUERTA | PUERTA-CS-2004 | Pregunta 43»