#include<stdio.h>
#include<stdlib.h>
struct node{
int data;
};
void main(){
struct node *head=NULL;
head
=malloc
(sizeof(struct node
)); head->data=34;
struct node *first=NULL;
first
=malloc
(sizeof(struct node
)); first->data=56;
struct node *second=NULL;
second
=malloc
(sizeof(struct node
)); second->data=88;
struct node *ptr=head;
struct node *temp=NULL;
temp
=malloc
(sizeof(struct node
)); temp->data=78;
printf("enter pos to print:"); { cnt++;
}
}
I2luY2x1ZGU8c3RkaW8uaD4KI2luY2x1ZGU8c3RkbGliLmg+CnN0cnVjdCBub2RlewogICAgaW50IGRhdGE7CiAgICBzdHJ1Y3Qgbm9kZSAqbmV4dDsKfTsKdm9pZCBtYWluKCl7CiAgc3RydWN0IG5vZGUgKmhlYWQ9TlVMTDsKICBoZWFkPW1hbGxvYyhzaXplb2Yoc3RydWN0IG5vZGUpKTsKICBoZWFkLT5kYXRhPTM0OwogIGhlYWQtPm5leHQ9TlVMTDsKICBzdHJ1Y3Qgbm9kZSAqZmlyc3Q9TlVMTDsKICBmaXJzdD1tYWxsb2Moc2l6ZW9mKHN0cnVjdCBub2RlKSk7CiAgZmlyc3QtPmRhdGE9NTY7CiAgZmlyc3QtPm5leHQ9TlVMTDsKICBoZWFkLT5uZXh0PWZpcnN0OwogIHN0cnVjdCBub2RlICpzZWNvbmQ9TlVMTDsKICBzZWNvbmQ9bWFsbG9jKHNpemVvZihzdHJ1Y3Qgbm9kZSkpOwogIHNlY29uZC0+ZGF0YT04ODsKICBzZWNvbmQtPm5leHQ9TlVMTDsKICBmaXJzdC0+bmV4dD1zZWNvbmQ7CiAgc2Vjb25kLT5uZXh0PWhlYWQ7CiAgc3RydWN0IG5vZGUgKnB0cj1oZWFkOwogIGludCBwb3MsY250PTA7CiAgc3RydWN0IG5vZGUgKnRlbXA9TlVMTDsKICB0ZW1wPW1hbGxvYyhzaXplb2Yoc3RydWN0IG5vZGUpKTsKICB0ZW1wLT5kYXRhPTc4OwogIHByaW50ZigiZW50ZXIgcG9zIHRvIHBya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