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);}From the Combined Bank Assistant Programmer (CSE) March 2021 – Preliminary exam, question 26 of 86.
More from this paper
- Previous: What is the correct output of the following C program statements? int array[]={6, 7, 8, 9, 0, 1, 2, 4, 5, 6}, *p=array+5…
- Next: Suppose you want to insert n elements into an empty linked list while maintaining the sorted order. What is the worst-case time complexity?
- All questions in Combined Bank Assistant Programmer (CSE) March 2021 – Preliminary