#include<stdio.h>
#include<stdlib.h>
struct node {
int data;
struct node *next;
};
void mian()
{
struct node a, b, c, *h, *p;
a.data = 10; b.data = 20; c.data = 30;
h = &a;
a.next = &b; b.next = &c; c.next = '\0';
p = h;
while (p)
{
printf("%d", p->data);
p = p->next;
}
printf("\n");
//system("pause");
}