Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
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
0
Please
log in
to post a comment.
Why &(a+1) is not allowed
lambda
치카냥3
WrongWay reversible iterator Copyright(C) 2016 Henry Kroll III www.thenerdshow.com
length
A_141110_Perfecto
second P
Spring 2017 Project 2 v.04
Lab 7 blackjack v1.1
Cuenta codigos
Please log in to post a comment.