当前位置:首页
> Luz 第6325页
Luz 管理员
暂无介绍
89860 篇文章 33 次评论单选题:对于以下定义,不正确的叙述是( )。
对于以下定义,不正确的叙述是( )。```struct ex { int x; float y; char z ;} example;```@[B](1)A. `struct`是定义结构类型的关键字B. `example`…
单选题:对于以下定义,错误的scanf函数调用语句是()。
对于以下定义,错误的scanf函数调用语句是()。```struct pupil{ char name[20]; int age; int sex;}pup[5];```@[A](1)A. scanf("%s", &pup[0].n…
单选题:以下程序段的输出结果为( )。
以下程序段的输出结果为( )。```struct { int x; int y;} s[2] = { { 1, 3 }, { 2, 7 } };printf("%d", s[0].y/s[1].x ); ```@[B](1)A…
单选题:以下程序的输出结果是( )。
以下程序的输出结果是( )。```struct stu{ int x; int *y;} *p;int dt[4] = {10, 20, 30, 40};struct stu a[4] = {50, &dt[0], 60, &dt[…
单选题:设有如下定义,则错误的输入语句是( )。
设有如下定义,则错误的输入语句是( )。```struct ss{ char name[10]; int age; char sex;} std[3], *p = std;```@[B](1)A. scanf("%d",…
单选题:下列程序的输出结果是( )。
下列程序的输出结果是( )。```struct stu{ char num[10]; float score[3];};int main( ){ struct stu s[3] = {{ "20021",90,95,85}…
单选题:如果结构变量s中的生日是“1984年11月11日”,下列对其生日的正确赋值是()。
如果结构变量s中的生日是“1984年11月11日”,下列对其生日的正确赋值是()。```struct student{ int no; char name[20]; char sex; struct{ int year;…
单选题:以下定义结构变量的语句中,错误的是()。
以下定义结构变量的语句中,错误的是()。@[C](1)A. ```struct student{ int num; char name[20];} s;```B. ```struct { int num; char na…
单选题:以下程序段的输出结果为()。
以下程序段的输出结果为()。```struct { int x, y;} s[2] = { {1, 3}, {2, 7} };printf("%d\n", s[0].y/s[1].x );```@[B](1)A. 0B. 1C. 2D.…
单选题:设有如下定义,则对`data`中的`a`成员的正确引用是()。
设有如下定义,则对`data`中的`a`成员的正确引用是()。```struct sk{ int a; double b;} data, *p = &data;```@[B](1)A. (*p).data.a B. (*p).aC…