retagged by
1,987 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
retagged by

Please log in or register to answer this question.

Answer:

Related questions

4 votes
4 votes
3 answers
3
3 votes
3 votes
2 answers
4
admin asked Mar 30, 2020
6,490 views
A balance factor in AVL tree is used to checkwhat rotation to makeif all child nodes are at same levelwhen the last rotation occurredif the tree is unbalanced