This prg is for creating a link list .But Iam not able to understand what will last line do q->link=tmp;
Code:
int create(int data)
{
struct node *q,*tmp;
tmp=malloc(sizeof(struct node));
tmp->info=data;
tmp->link=NULL;
if(start==NULL)
start=tmp;
else
{
q=start;
while(q->link!=NULL)
{
q=q->link;
}
q->link=tmp; // why this is required
}
}

