Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Linked List
#include <stdio.h> #include <stdlib.h> struct s { int info; struct s *next; }; typedef struct s node; void insert(node **start,int info) { node *ptr; ptr=(node*)malloc(sizeof(node)); ptr->info=info; ptr->next=*start; *start=ptr; } void newlist(node **start) { *start=(node*)NULL; } void display(node *start) { while(start!=(node*)NULL) { printf("%d ",start->info); start=start->next; }} int main() { node *start; newlist(&start); insert(&start,10); insert(&start,20); display(start); }
run
|
edit
|
history
|
help
0
3D ..
Deadlock
sample.c
C_141127:MatricesUnSoloIndice
EUCLIDES BIEN
Prime no
C programming final grade
Hello world!
structt
string_ptr_to_fct_param_v2