Advertisement
Guest User

Untitled

a guest
Jun 15th, 2019
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. #include<stdio.h>
  2. #include<stdlid.h>
  3. int main()
  4. struct Node
  5. {
  6. int a,
  7. int b,
  8. Node *n1,*n2,*n3;
  9. n1=(Node*)malloc(sizeof(Node));
  10. n1->a=1;
  11. n1->b=15;
  12. n1->c=3
  13. n1->ptr=NULL;
  14. head=n1;
  15. node*n2=malloc(sizeof(node));
  16. n2->a=15;
  17. n2->b=B;
  18. n2->ptr=NULL;
  19. node*n3=malloc(sizeof(node));
  20. n3->a=3;
  21. n3->b=C;
  22. n3->ptr=NULL;
  23. n2->ptr=n3;
  24. node*temp=head;
  25. while(temp!=NULL)
  26. {
  27.  
  28. }
  29.  
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement