#include<stdio.h>
#include<stdlib.h>
struct nodetype
{
int data;
/* data数据项用于存放结点的数据值 */
struct nodetype *next;
/* next数据项存放下一个结点的指针 */
};
void main()
{
int a;
int *p;
printf(" %d ",sizeof(a));
printf(" %d ",sizeof(struct nodetype));
p=malloc(4);
scanf("%d",p);
printf(" %d ",*p);
}
#include<stdlib.h>
struct nodetype
{
int data;
/* data数据项用于存放结点的数据值 */
struct nodetype *next;
/* next数据项存放下一个结点的指针 */
};
void main()
{
int a;
int *p;
printf(" %d ",sizeof(a));
printf(" %d ",sizeof(struct nodetype));
p=malloc(4);
scanf("%d",p);
printf(" %d ",*p);
}