Question: What is the result of the following function to start pointing to the first node of follow linked list? A. 1 4 6 6 4

What is the result of the following function to start pointing to the first node of follow linked list?

1->2->3->4->5->6 void fun (struct node* start) { } if (start = NULL)

A. 1 4 6 6 4 1 B. 1 3 5 1 3 5 C. 1 2 3 5 D. 1 3 5 5 3 1

1->2->3->4->5->6 void fun (struct node* start) { } if (start = NULL) return; printf("%d ", start->data); if (start->next != NULL ) fun (start->next->next); printf ("%d ", start->data);

Step by Step Solution

3.44 Rating (160 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

D Explanation In above example recursive function call is used 1 First print f is writt... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Data Structures and Other Objects Using Java Questions!