您的位置:首页 > 理论基础

2008秋季-计算机软件基础-0908课堂用例(1)

2008-09-08 16:51 465 查看
#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);

}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: