Warum typedef bei struct?
-
Warum schreibt man
typedef struct x { char name[20]; int age; struct x *next_rec; } linklist; }
und nicht einfach
struct linklist { char name[20]; int age; struct x *next_rec; };
Verstehe den Sinn dahinter nicht.
-
in C musst du ohne typedef sonst
struct linklist l;
schreiben. durch das typedef ersparst du dir das struct zu schreiben...