c - how to insert a node in a linked list what is below function insert doing what kind of data structure it is struct linkedlist int val struct linkedlist prev struct linkedlist next head null tail null void insertint item struct linkedlist temp mallocsi - skillgun

function insert() is trying to insert a new node to the linked list at the end. head is pointing to starting node, and tail is pointing to last node. if there are no nodes both head and tail are having null values. this is an example of doubly linked list.

function insert() is trying to insert a new node to the linked list at the end. head is pointing to starting node, and tail is pointing to last node. if there are no nodes both head and tail are having null values. this is an example of single linked list.

function insert() is trying to insert a new node to the linked list at the head node. head is pointing to starting node, and tail is pointing to last node. if there are no nodes both head and tail are having null values. this is an example of doubly linked list.

function insert() is trying to insert a new node to the linked list at the end. head is pointing to starting node, and tail is pointing to last node. if there are no nodes both head and tail are having null values. this is an example of double linked list.

Answer :(A)

function insert() is trying to insert a new node to the linked list at the end. head is pointing to starting node, and tail is pointing to last node. if there are no nodes both head and tail are having null values. this is an example of doubly linked list.

Description :

function insert() is trying to insert a new node to the linked list at the end. head is pointing to starting node, and tail is pointing to last node. if there are no nodes both head and tail are having null values. this is an example of doubly linked list.