Professional Documents
Culture Documents
Insert Into End Linked List
Insert Into End Linked List
#include<stdio.h>
#include<stdlib.h>
struct node
{
int data;
struct node* link;
};
ptr = head;
ptr->link= temp;
}
int main()
{
struct node* head = (struct node*) malloc(sizeof(struct node));
add_end(head,64);
add_end(head,90);
while(head!=NULL)
{
printf("%d\n",head->data);
head = head->link;
}
return 0;
}