#include <stdio.h>
#include<conio.h>
#include<alloc.h>
struct data
{
int value;
struct data *next;
};
int main()
{
int s;
struct data *m,*i;
printf("enter the data: ");
scanf("%d",&s);
i=(struct data *)malloc(size of(struct data);
i->value=s;
i->next=m;
m=i;
printf("enter the 2nd data: ");
scanf("%d",&s);
i=(struct data *)malloc(size of (struct data);
i->value=s;
i->next=m;
m=i;
printf("\n list of values: ");
while(m->value!=null)
{
printf("%d",m->value);
m=m->next;
}
return 0;
}
hii deceptikon this is the new topic i learned .here the values are stored like array but the main confusion is
here
i->value=s;
i->next=m;
confusing values are stored i want to learn more about this topic .could u suggest a good video tutorial link or good links or explain its bit difficult to understand