Question: Please write this in C, thank you Your function's prototype is as follows: int getFirst(struct node *LL, int *error); and operates as follows: LL is

Please write this in C, thank you

Your function's prototype is as follows: int getFirst(struct node *LL, int *error); and operates as follows: LL is an array of struct nodes *containing a linked list* LL[0] is assumed to be a sentinal node, and is always present LL[0].next is the index of the first data node If there is a first data node, your function should return that value as the function value, and should set *error to 0 If however the list is empty (no first data node exists), the function should return 0, and should set *error to 1

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!