Consider the following function.
void fun(struct node* start)
{
if(start == NULL)
return;
if(start!=NULL && start->next!=NULL )
printf("%d ", start->data);
fun(start->next->next);
}
What will the above function do if the head of a singly LinkedList is passed to it?
1
It prints alternate nodes using even number LinkedList starting from the head of the LinkedList.
2
It is incorrectly implemented as it will not terminate and will not give any output
3
It prints alternate nodes starting from the 2nd node of the linked list
4
It will print the head of the linked list and then terminate