Computer Science, asked by mohammedsadhikalisha, 5 hours ago

What is the output of following function for given linked list 1->2->3->4->5->6 with starting point to first
Node of linked list?
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);
}​

Answers

Answered by mohitkumarpathakbir4
2

Explanation:

he's been in a lot of the following things lately with

Answered by mindfulmaisel
0

The output of the function is 135531

Explanation:

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);

}​

  • the output of the following function for given linked list 1→2→3→4→5→6 with a starting point to the first Node of linked list is 135531
  • hence, the output of the following function is 135531

Similar questions