Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
C list
#include <stdio.h> #include <stdlib.h> typedef struct _node { struct _node *next; int value; } Node; int main (int argc, char **argv) { Node *list, *node, *tail; int i; list = NULL; tail = (Node *) &list; for (i = 0; i < 10; i++) { node = malloc (sizeof (Node)); node->next = NULL; node->value = i; tail->next = node; tail = node; } for (node = list; node != NULL; node = node->next) printf("%d ", node->value); printf("\n"); return 0; }
run
|
edit
|
history
|
help
1
problem4 review fundamentos
segundo avance de la lista enlazada
150109_RecursividadFactorial
No warnings!!!
Lab 7 v1.0
swap_talent.c
base
C_141126_ArrayMayorMenor02
Command Expressions in Gnu C: What's the value of a loop? void!
PRACTICA LISTA