若有以下定义和语句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;
设有如下定义struct ss{ char name[10];int age;char sex;}std[3],*p=std;下面各输入语句中错误的是( )
在【】位置填上正确的代码。下面的程序段定义struct student类型的结构体数组info,并将数组元素info[0]、info[1]、info[2]初始化为图8-2所示数据。6372477ee27026a2684980dcc101f994.jpg
若已经定义 typedef struct stu { int a, b; } student ; 则下列叙述中正确的是( )
设有定义:struct test{int x;int y} t;则下面的叙述不正确的是_________。
以下程序的输出是( ) 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 student { int num; char sex; int age; }a1,a2; 则下面的用法中不正确的是( ).
若已经定义: struct stu { int a, b; } student ; 则下列输入语句中正确的是( )
设有变量定义struct str{int age;int num;}std,*p=&std; ,能正确引用结构变量std中成员age的表达式是( )。
以下代码将定义结构体类型,并定义结构体变量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 employee
设有如下定义: struct sk {int a; float b;} data,*p;若要使p指向data中的a域,正确的赋值语句是().
已知有结构体定义: 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
设有下列定义:struct sk{int m;float x;}data,*q;若要使q指向data中的m域,正确的赋值语句是()。A.
设有如下定义,struct sk{int a;float b;}data;int*p; 若要使P指向data中的a域,正确的赋值语句是(
设有一结构体类型变量定义如下,若对结构体变量w1的出生年份year进行赋值,下面正确的赋值语句是()。 struct date { int year; int month; int day; }; struct worker { char name[20]; char sex; struct date birthday; }w1;
设有如下定义: 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; 以下选项中引用结构体变量成员的表达式错误的是()