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
#include <stdio.h> | |
#include <stdlib.h> | |
typedef struct snodo{ //snodo es el nombre de la estructura | |
int valor; | |
struct snodo *sig; //El puntero siguiente para recorrer la lista enlazada | |
}tnodo; //tnodo es el tipo de dato para declarar la estructura | |
typedef tnodo *tpuntero; //Puntero al tipo de dato tnodo para no utilizar punteros de punteros | |
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
#include <stdio.h> | |
#include <string.h> | |
#include <stdlib.h> | |
#include <ctype.h> | |
#define MAX 100 | |
typedef struct snodoa{ | |
int valor; | |
struct snodoa *izq, *der; |