填空题

下面程序的运行结果是______。 typedef union student { char name[10]; long sno; char sex; float score[4]; }STU; main() { STU a[5]; printf("%d\n",sizeof(A) ); }

【参考答案】

80
<上一题 目录 下一题>
热门 试题

填空题
下面rotate函数的功能是:将n行n列的矩阵A转置为A’,例如:1 2 3 4 1 5 9 135 6 7 8 2 6 10 14当A = 9 10 11 12 则 A’= 3 7 11 1513 14 15 16 4 8 12 16请填空。#define N 4void rotate(int a[] [NJ ){int i,j,t;for ( i=0; i<N; i++ )for(j=0; ______;j++){t=a[i] [j];______;a[j] [i]=t;}}
填空题
以下sstrcpy()函数实现字符串复制,即将t所指字符串复制到s所指向内存空间中,形成一个新的字符串s。请填空。void sstrcpy(char *s,char *t){ while(*s++=______); }main(){ char str1[100],str2[]= abcdefgh ;sstrcpy(str1,str2);printf( %s n ,str1);}
相关试题
  • 以下sum函数的功能是计算下列级数之和。请...
  • 下面程序的运行结果是______。void ...