What does the following function do for a given Linked List with first node as head?
void fun1(struct node* head)
{
if(head==NULL)
return;
fun1(head->next);
printf("%d",head->data);
}
- Prints all nodes of linked lists
- Prints all nodes of linked list in reverse order
- Prints alternate nodes of Linked List
- Prints alternate nodes in reverse order