单项选择题

下面结构体的定义语句中,错误的是______。

A.struct ord { int x; int y; int z;} struct ord a;
B.struct ord { int x; int y; int z; }; struct ord a;
C.struct ord { int x; int y; int z;} a;
D.struct { int x; int y; int z;} a;
<上一题 目录 下一题>
热门 试题

单项选择题
有以下程序:#include <stdio.h>main(){ char s[]= 012xy 08s34f4w2 ;int i, n=0;for(i=0; s[i]!=0; i++)if(s[i]>=’0’&&s[i]<=’9’)n++;printf( %d n , n);}程序运行后的输出结果是______。
A.0
B.3
C.7
D.8
单项选择题
有以下程序:#include <stdio.h>#define N 4void fun(int a[][N], int b[]){ int i;for(i=0; i<N; i+)b[i]=a[i][i]-a[i][N-1-i];}main(){ int x[N][N]={{1, 2, 3, 4}, {5, 6, 7, 8}, {9, 10, 11, 12}, {13, 14, 15, 16}}, y[N], i;fun(x, y);for(i=0; i<N; i++) printf( %d, , y[i]); printf( n );}程序运行后的输出结果是______。
A.-3, -1, 1, 3,
B.-12, -3, 0, 0,
C.0, 1, 2, 3,
D.-3, -3, -3, -3,
相关试题
  • 读取二进制文件的函数调用形式为:fread(b...
  • 有以下程序:#include <stdio.h>main...
  • 有以下程序:#include <stdio.h>#inc...
  • 以下叙述中正确的是______。
  • 有以下程序:#include <stdio.h>typed...