Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<stdlib.h>
- typedef struct node
- {
- int a;
- struct node*next;
- }node;
- node*head=NULL;
- int main()
- {
- node*N=(node*)malloc(sizeof(node));
- N->a=3;
- N->next=NULL;
- node*p=(node*)malloc(sizeof(node));
- p->a=3;
- p->next=NULL;
- N->next=p;
- if(N->a==p->a)
- {
- printf("%d",N->a);
- printf("%d",p->a);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement