I was working on structs but I got a problem. So, I removed some parts and my code is below. Why don't I get any output from that code?
typedef struct Song {
char name[25];
int duration;
struct Song* next_alpha;
struct Song* next_chrono;
struct Song* next_duration;
struct Song* next_random;
} Song;
typedef Song* SongPtr;
typedef struct SongList {
int size;
SongPtr head_alpha;
SongPtr head_chrono;
SongPtr head_duration;
SongPtr head_random;
} SongList;
typedef SongList* SongListPtr;
void insert(SongList**, char[], int);
int main() {
SongListPtr songs; //Struct pointer to reach linked lists.
songs->size = 0;
songs->head_alpha = NULL;
songs->head_chrono = NULL;
songs->head_duration = NULL;
songs->head_random = NULL;
char name[25] = "";
int minute = 0;
int second = 0;
insert(&songs, name, 60*minute+second);
printf("Good Job");
return 0;
}
void insert(SongListPtr* songs, char name[], int duration) {
printf("insert");
}```