Learning data structure with C