Predict the output that the following code gives for a linked list given as 1->2->3->4->5->6
void fun(node* start)
{
if(start == NULL)
return;
cout<data<<" “;
if(start->next != NULL )
fun(start->next->next);
cout<data<<” ";
}
how its printing 1 3 5 5 3 1