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

#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);
}
原文地址:https://www.cnblogs.com/emanlee/p/1286901.html