填空题

以下程序用来输出结构体变量ex所占存储单元的字节数,请填空。
struct st
char name[20];double score;;
main()
struct st ex;
printf("ex size:%d\n",sizeof( 【18】 ));

【参考答案】

struct st或ex
<上一题 目录 下一题>
热门 试题

填空题
以下程序段的功能是统计链表中结点的个数,其中first为指向第一个结点的指针(链表带头结点)。请在下划线内填入正确内容。 struct link char data; struct link*next;; … struct link*p,*first; int c=0; p=first; while( 【19】 ) c++; p= 【20】 ;
填空题
以下程序的输出结果是 【17】 。 #include<stdio.h> main() int s[]=1,2,3,4,i; int x=0; for(i=0;i<4;i++) x=sb(s,x); printf( %d ,x); printf( n ); sb(s1,y) int *s1,y; static int i1=3; y=s1[i1]; i1--; return(y);
相关试题
  • 在结构化设计方法中,生成的结构图(SC)中...
  • 以下程序的功能是进行位运算 main() un...
  • 相对于数据库系统,文件系统的主要缺陷有数...
  • 设有下面的程序段: char s[]= china...
  • 以下scanf函数调用语句中对结构体变量成员...