#include #include typedef struct list{ int d; struct list *next; }list; list *head; void wypisz(){ while(head!=NULL){ printf("%i\n", head->d); head=head->next; } } int main(){ int i; for(i=0; i<4; i++){ list* nowy=(list*)malloc(sizeof(list)); nowy->d=2+1; if(i==0) {nowy->next=NULL;} else {nowy->next=head;} head=nowy; } wypisz(); return 0; }