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…

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. a) Prints all nodes of linked list
  2. b) Prints all nodes of linked list in reverse order
  3. c) Prints alternate nodes of Linked List
  4. d) Prints alternate nodes in reverse order

From the Combined Bank Assistant Programmer (CSE) March 2021 – Preliminary exam, question 26 of 86.

More from this paper