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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!