Q. 48 The following C function takes a singly-linked list as input argument. It modified
the list by moving the last element to the front of the list and returns the modified
list. Some part of the code is left blank.
typedefstructnode{intvalue;structnode *next;} Node;Node *move_to_front(Node *head){Node *p, *q;if((head == NULL: || (head->next == NULL))returnhead;q = NULL; p = head;while(p-> next !=NULL){q = p;p = p->next;}_______________________________returnhead;}
Choose the correct alternative to replace the blank line.
Answer: (D)
Explanation:













