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);
}

你可能感兴趣的:(2008)