What will be the output of following programs :
void fun1(struct node* head)
{
for(head == NULL)
{
return;
}
fun1(head->next);
printf("%d ", head->data);
}
And this one !
void fun1(struct node* head)
{
while(head == NULL)
{
return;
}
fun1(head->next);
printf("%d ", head->data);
}