Menu

Please Write C Thank Function S Prototype Follows Int Getfirst Struct Node Ll Int Error Op Q43825685

Please write this in C, thank you

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

Expert Answer


Answer to Please write this in C, thank you Your function’s prototype is as follows: int getFirst(struct node *LL, int *error); an…

OR