Run Code
|
API
|
Code Wall
|
Users
|
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
Please
log in
to post a comment.
CONTADOR DE PALABRAS
No warnings!!!
A141212_OrdenarArrayPorFunciones
time clock and day count through second by user input (ratneshgujarathi)
bit shift and mask
object-oriented C by Henry Kroll III www.thenerdshow.com
Nice1
Threads_posix
co_4
printf
Please log in to post a comment.