Question: How do I created a doubly linked list with a struct like this. In C programming. And create a printlist function That will print out
How do I created a doubly linked list with a struct like this. In C programming. And create a printlist function That will print out the entire list.
struct info{ int *rating;
char*title;
char genre: struct info *next;
struct info * prev;
}:
int main(){
char title[30];
char genre[30];
int rating=0;
while(1){
printf("Enter a title:)
scanf("%s",&title);
printf(" Enter a genre:");
scanf("%s",&genre);
if(gerne||title=0){ break; }
printf("Please enter a rating ");
scanf("%d",&rating);
}
return 0;
}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
