Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<stdlid.h>
- int main()
- struct Node
- {
- int a,
- int b,
- Node *n1,*n2,*n3;
- n1=(Node*)malloc(sizeof(Node));
- n1->a=1;
- n1->b=15;
- n1->c=3
- n1->ptr=NULL;
- head=n1;
- node*n2=malloc(sizeof(node));
- n2->a=15;
- n2->b=B;
- n2->ptr=NULL;
- node*n3=malloc(sizeof(node));
- n3->a=3;
- n3->b=C;
- n3->ptr=NULL;
- n2->ptr=n3;
- node*temp=head;
- while(temp!=NULL)
- {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement