#include<stdio.h>
struct node{
int rool;
struct node*link;
};
typedef struct node x;
x*head;
int main(){
x*temp=malloc(sizeof(x));
temp->rool=12;
head=temp;
x*temp1=malloc(sizeof(x));
temp1->rool=13;
temp->link=temp1;
x*temp2=malloc(sizeof(x));
temp2->rool=14;
temp1->link=temp2;
temp2->link=temp;
while(2!=1){
printf("%d\n",head->rool);
if(head->link==temp)
break;
head=head->link;
}
return 0;
}
কোন মন্তব্য নেই:
একটি মন্তব্য পোস্ট করুন