Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- }
- else
- {
- newnode=(node *)malloc(sizeof(node));
- newnode->data=ele;
- newnode->next=NULL;
- temp->next=newnode;
- temp=newnode;
- }
- while(1)
- {
- printf("n Enter your choice ");
- printf("n1.Insert ");
- printf("n2.Display");
- printf("n3.Exit");
- printf("n enter your choice ");
- scanf("%d",&ch);
- switch(ch)
- {
- case 1 :insert();
- break;
- case 2 :display();
- break;
- case 3 :exit(0);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement