codepad
[
create a new paste
]
login
|
about
Language:
C
C++
D
Haskell
Lua
OCaml
PHP
Perl
Plain Text
Python
Ruby
Scheme
Tcl
#include <stdio.h> #include <stdlib.h> struct cell { struct cell *next; int data; }; struct slist { struct cell *head; }; void saigo_sonyu(struct slist *start,int data) { struct cell *p; p=start->head; while(p!=NULL){ p=p->next; } p=(struct cell*)malloc(sizeof(struct cell)); p->data=data; p->next=NULL; }
Private
[
?
]
Run code
Submit