Created
December 6, 2019 02:33
-
-
Save parzibyte/2262e459a6ea83d75d383fb226e8e2a7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct Nodo *nuevoNodo(int dato) { | |
// Solicitar memoria | |
size_t tamanioNodo = sizeof(struct Nodo); | |
struct Nodo *nodo = (struct Nodo *) malloc(tamanioNodo); | |
// Asignar el dato e iniciar hojas | |
nodo->dato = dato; | |
nodo->izquierda = nodo->derecha = NULL; | |
return nodo; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment