假定一个结构类型的定义为 “struct A{int a,b; A* c;};”,则该类型的长度为12。()
若有以下定义和语句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;
以下对结构变量stul中成员age的非法引用是struct student{ int age;int num;}stu1,*p;p=&stu1;
若已经定义 typedef struct stu { int a, b; } student ; 则下列叙述中正确的是( )
设有以下说明语句 struct stu {int a; float b; }stutype; 则下面的叙述不正确的是
设有以下定义: struct student {int a; float b;}stu; 则结构体类型的关键字是 ________ ,用户定义的结构体类型名是 ________ ,用户定义的结构体变量是 ________ 。
08110012:有以下说明语句,则下面的叙述不正确的是( )。typedef struct stu{int a;float b}stutype;
以下代码将定义结构体类型,并定义结构体变量stu1和stu2。(第8章 结构体程序设计)student stu1,stu2;struct student{ char num[5];int score;};
若有以下定义语句,则以下错误的引用是( )。 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;以下选项中引用错误的是___ __。
若有下列说明和语句,则对结构体变量st中成员i的引用方式不正确的是()。 Struct stu { int i; int name; }st,*p; p=&st;
根据下列的定义,能打印出字母P的语句是()。 struct stu { char name[10]; iht age; }; struct stu s[10]={"John",11, "Paul", 12, "Mary", 11, "adam",12 };
已知有结构体定义: 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
若有下列说明和语句,则对结构体变量st中成员i的引用方式不正确的是()。 Struct stu { int i; int name; }st,*p; p=&st;
若有下列说明和语句,则对结构体变量st中成员i的引用方式不正确的是()。 Struct stu { int i; int name; }st,*p; p=&st;
已知对学生记录的描述为: struct student { int num; char name[20],sex; struct{ int year,month,day; }birthday; } struct student stu; 设变量stu中的“生日”是“1995年11月12日”,对“birthday”正确赋值的程序是______。
已有定义“struct xy{int a; double b;}m;”,变量m的成员a的正确表示是()
有以下程序 include<stdio.h>include<string.h>typedef struct stu { char name[10]; char gender; int score; } STU; void f(); } 程序的运行结果是
变量a所占的内存字节数是________。() struct stu { char name[20]; long int n; int score[4]; }
有以下程序: include struct stu { int num;char name[l0];int age;}; void fun(struct stu*p)
有以下程序: include struct STU{char name[9];char sex;int score[2];}; void f(struct STU a[
有以下程序: include<stdio.h> include <string.h> typedef struct char name[9]; char sex; float score[2]; STU; void f(STU a) STU b="Zhao", "m", 85.0, 90.0; int i; strcpy(a.name, b.name); a.sex=b.sex; for (i=0