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
A_141205_Palindromo
TopLeftTriangle.c
18BCE2182 MIDTERM PART-B CRITICAL
PUNTEROS 1
lab 12 v0.1
decimalespi
tarea1
My first 2D array
decr
-Wfloat-conversion