Advertisement
Guest User

Untitled

a guest
Mar 28th, 2017
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. #include<stdio.h>
  2.  
  3. }
  4. else
  5. {
  6. newnode=(node *)malloc(sizeof(node));
  7. newnode->data=ele;
  8. newnode->next=NULL;
  9. temp->next=newnode;
  10. temp=newnode;
  11. }
  12.  
  13. while(1)
  14. {
  15.  
  16. printf("n Enter your choice ");
  17. printf("n1.Insert ");
  18. printf("n2.Display");
  19. printf("n3.Exit");
  20. printf("n enter your choice ");
  21. scanf("%d",&ch);
  22. switch(ch)
  23. {
  24. case 1 :insert();
  25. break;
  26. case 2 :display();
  27. break;
  28. case 3 :exit(0);
  29.  
  30. }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement