c - what is function fun doing in below code include stdioh struct linkedlist int val struct linkedlist next head null tail null void funint p struct linkedlist item ifp0 item null return struct linkedlist temp head forint i1 ip temp i temp tempnext iftem - skillgun

the function fun() is trying to insert a node after pth element in the given double linked list. But it is not handling the condition where we want to insert a new node as head node.

the function fun() is trying to insert a node after pth element in the given single linked list. But it is not handling the condition where we want to insert a new node as head node.

the function fun() is trying to insert a node after pth element in the given single linked list. It is handling the conditions of inserting a node at 0th or other locations. But it is not handling if p is more than n.

the function fun() is trying to insert a node after pth element in the given single linked list. It is handling the conditions of inserting a node at 0th or other locations. it is also handling if p is greater than n.

Answer :(D)

the function fun() is trying to insert a node after pth element in the given single linked list. It is handling the conditions of inserting a node at 0th or other locations. it is also handling if p is greater than n.

Description :

the function fun() is trying to insert a node after pth element in the given single linked list. It is handling the conditions of inserting a node at 0th or after other locations also. it is also handling if p is greater than n.