c - assuming that the linked list is already in sorted order what is below function doing void checkstruct node head struct node current head if current null return do nothing if the list is empty compare current node with next node whilecurrentnextnull i - skillgun

it is trying to delete the nodes with same address.

it is trying to find the middle node of this singly linked list.

it is trying to delete every alternative node of this singly linked list.

Answer :(A)

It is trying to delete the duplicate nodes.

Description :

This is the logic to delete duplicate nodes from the linked list.In the while loop we are checking if next node is there or not. If next node exists, we are comparing current node data and next node data. if they are equal we are freeing next node (i.e deleting next node) and adjusting the linked list links accordingly. If data is not equal then we are proceeding further.