Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Hi, I have written a program that have some errors. Can anyone look in to this a

ID: 3648926 • Letter: H

Question

Hi, I have written a program that have some errors. Can anyone look in to this and help me out ?
You would like to keep track of the books that you have been reading. You

Explanation / Answer

#include #include typedef struct Node { char *data; struct Node *next; }node; void insert(node *pointer, char *data) { while(pointer->next!=NULL) { pointer = pointer -> next; } pointer->next = (node *)malloc(sizeof(node)); pointer = pointer->next; pointer->data = data; pointer->next = NULL; } void display(node *pointer) { if(pointer==NULL) { return; } printf("%s",pointer->data); display(pointer->next); } int main() { node *newely,*temp; newely = (node *)malloc(sizeof(node)); temp = newely; temp -> next = NULL; int total_no_books,i; char *book; printf("enter the total number of books "); scanf("%d",&total_no_books); for(i=0;inext); printf(" "); }
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote