Question: 5 CO2 Draw the link list structure for the following program indicating all the [4] parameters. struct Inode int data; struct Inode . next; };
5 CO2 Draw the link list structure for the following program indicating all the [4] parameters. struct Inode int data; struct Inode . next; }; void create (struct Inode** head, int n) int ke; struct inode* current= NULL; if(n>=0) while(ken) if(k!-) { struct Inode* temp-struct Inode") malloc(sizeof(struct Inode));//(continuation of previous line) temp->data= k; temp->next-NULL; current->nexttempi current temp; k=k+1; eise { struct Inode* temp=(struct Inode*) malloc(sizeof(struct Inode)); temp->datak; temp->next-NULL; "head-temp; current temp; kak+1; > int main() struct Inode head=NULL; create(&head, 5); struct Inode* current=head; while(current! -NULL) { printf("%d-->", current->data); current current->next; return
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
