设有以下说明 struct student { int num; char sex; int age; }a1,a2; 则下面的用法中不正确的是( ).
相似题目
-
若有以下定义和语句struct student{ int age;int num;};struct student stu[3]={{1001,20},{1002,19},{1003,21}};int main(){struct student *p; p=stu;……}则以下不正确的引用是( )。
-
若已经定义 typedef struct stu { int a, b; } student ; 则下列叙述中正确的是( )
-
若有以下定义语句,则以下错误的引用是( )。struct student{int num,age;};struct student stu[3]={{101,20},{102,19},{103,18}},*p=stu;
-
设有以下语句:typedef struct S{int g;char h;}T;下面叙述正确的是()。
-
设有以下说明语句,则下面叙述中正确的是( )。typedef struct { int n; char ch[8]; }PER;
-
以下对结构变量stul中成员age的非法引用是struct student{ int age;int num;}stu1,*p;p=&stu1;
-
已知学生记录描述为:struct student{int num;char name[20];struct{int year;int month;int day;}birth;};struct student s;下列对“生日”的正确赋值方式是()
-
已知学生记录描述为:struct student{int num;char name[20];struct{int year;int month;int day;}birth;};struct student s;下列对“生日”的正确赋值方式是()
-
若已经定义 typedef struct stu { int a, b; } student ; 则下列叙述中正确的是( )
-
以下程序的输出是( ) struct Student { char name[30]; float Score[3]; }student={'stu',98.5,89.0,93.5}; void Display(struct Student su) { printf('Name:%s ',su.name); printf('Score:%.2f',su.Score[0]); int main () { Display(student); return 0; }
-
下面C语言语句定义了( )。struct student{ int num;char name[20];char sex;}s1,s2;
-
设有以下说明语句 struct stu {int a; float b; }stutype; 则下面的叙述不正确的是
-
若已经定义: struct stu { int a, b; } student ; 则下列输入语句中正确的是( )
-
设有以下定义: struct student {int a; float b;}stu; 则结构体类型的关键字是 ________ ,用户定义的结构体类型名是 ________ ,用户定义的结构体变量是 ________ 。
-
以下代码将定义结构体类型,并定义结构体变量stu1和stu2。(第8章 结构体程序设计)student stu1,stu2;struct student{ char num[5];int score;};
-
设有以下定义typedef struct ex{int x;float y;char z;} str;则可以作为结构体类型名的是( )。
-
若有以下定义语句,则以下错误的引用是( )。 struct student { int num,age;}; struct studentstu[3]={{101,20},{102,19},{103,18}},*p=stu;
-
struct student{ int age; char num[8];};struct student stu[3]={{20,\200401\},{21,\200402\},{19,\200403\}};struct student *p=stu;以下选项中引用错误的是___ __。
-
设有以下程序: struct st{int n;struct st *next;}; static struct st a[3]={5,&a[1],7,&a[2],9,'\0'},*p; p=&a [0]; 下面选项中,表达式值为6的是______。
-
已知有结构体定义: struct student { int num; char name[20] ; char sex ; int age ; float score; char addr[30] ; } stu [ 2 ] ; 则对 stu 数组可以进行以下初始化: stu [ 2 ]= {{10101 , "LiLin" , ’M’ , 18 , 87.5 , "103 BeijingRoa
-
请根据程序中的注释,把程序补充完整 include <stdio.h> struct student { char name[20];
-
已知对学生记录的描述为: struct student { int num; char name[20],sex; struct{ int year,month,day; }birthday; } struct student stu; 设变量stu中的“生日”是“1995年11月12日”,对“birthday”正确赋值的程序是______。
-
设有如下定义: struct student { int num; char name[20]; float score; }; 则下列语句的输出结果是());
-
3、3、有以下说明和定义语句 struct student { int age; char num[8];}; struct student stu[3]={{20,"200401"},{21,"200402"},{10\9,"200403"}}; struct student *p=stu; 以下选项中引用结构体变量成员的表达式错误的是()
推荐题目
- 在调试器的窗口中,()按钮的功能是逐行执行程序语句。
- 要成为一名合格的销售经理不仅需要一定的销售技能,同时还需要在观念、思维上有一定的改变。具体如下
- 检验男女童单服装样板的裤长由腰上口沿缝摊平量至裤口,其公差范围是()cm.
- 等值盐密测试时应将测试结果进行温度补偿到到()℃。
- 十八大以来享乐主义在党内有明显上升的趋势。
- 中国提出( )倡议的目标在于促进互利共赢,其出发点和落脚点是所有参与国家的共同繁荣。
- 编译程序与运行系统合称为什么()。
- 在窗体上有一个文本框,其名称为Text1,编写下列事件过程:Private()
- 关于策略路由,一下描述错误的是()
- 导游员在带团时,要根据不同的情况采用不同的方法来调节旅游者的情绪,其基本方法有____、____和____等。