in DS retagged by
1,990 views
5 votes
5 votes

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); 
} 
  1. Prints all nodes of linked lists
  2. Prints all nodes of linked list in reverse order
  3. Prints alternate nodes of Linked List
  4. Prints alternate nodes in reverse order
in DS retagged by
by
2.0k views

1 comment

Option B is correct. All the nodes of the linked list will get printed in reverse order.
1
1

Please log in or register to answer this question.

Answer:

Related questions