Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define _MAX 2
- #include<stdio.h>
- #include<stdlib.h>
- #include<stdint.h>
- struct s_nodo{
- uint8_t ID;
- struct s_nodo* v;
- };
- typedef struct s_nodo s_n;
- typedef struct s_nodo* p_n;
- void crea_nodo(p_n *a, uint8_t ID){
- n->ID=ID;
- a->v=NULL;
- }
- int main(){
- s_n nodo[_MAX];
- p_n inicio,cursor;
- crea_nodo(&nodo[0],'A');
- crea_nodo(&nodo[1],'B');
- inicio=&nodo[0];
- nodo[0].v=&nodo[1];
- nodo[1].v=NULL;
- }
Advertisement
Add Comment
Please, Sign In to add comment