Oto uczyniłem prostą listę jednokierunkową:
Kod: Zaznacz cały
#include <stdio.h>
#include <stdlib.h>
struct el_listy {
int klucz;
el_listy *nast;
};
int main(){
el_listy *head;
head=(el_listy*)malloc(sizeof(el_listy*));
head->nast=NULL;
}