Recently during a lecture by my tutor about linked lists he declared them like this:
struct asd *head=(struct asd *)malloc(sizeof(struct asd));
I'm wondering what's the difference between the declaration above compared to this:
struct asd *head=malloc(sizeof(struct asd));
Because I've been using the latter for every linked list I make. BTW the language is C.