Advertisement
Guest User

Untitled

a guest
Nov 12th, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.40 KB | None | 0 0
  1. #include<stdio.h>
  2. #include<stdlib.h>
  3. typedef struct node
  4. {
  5.     int a;
  6.     struct node*next;
  7. }node;
  8. node*head=NULL;
  9. int main()
  10. {
  11.     node*N=(node*)malloc(sizeof(node));
  12.     N->a=3;
  13.     N->next=NULL;
  14.     node*p=(node*)malloc(sizeof(node));
  15.     p->a=3;
  16.     p->next=NULL;
  17.     N->next=p;
  18.     if(N->a==p->a)
  19.     {
  20.         printf("%d",N->a);
  21.         printf("%d",p->a);
  22.     }
  23.     return 0;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement