```
void recdisp(struct node* p);

struct node{
int data;

struct node* link;
};

struct node* head;

int main()
{

recdisp(head);

return 0;
}

void recdisp(struct node* p)
{

if(p==NULL)
return; 

recdisp(p->link);

printf("%d ",p->data);

}

```

declared the function before main!!!