struct test{ Char a[3]; Int b[4]; Short c[5]; }; 一个test类型数据占用()个字节的空间。
若有以下结构体定义,则用( )赋值是正确的。struct s{ char x;int y;}t;
设有如下定义struct ss{ char name[10];int age;char sex;}std[3],*p=std;下面各输入语句中错误的是( )
设有定义:struct {char mark[12];int num1;double num2;}t1,t2;,若变量均已正确赋初值,则下列语句中错误的是( )。
设有定义:int a=7;float x=2.5,y=4.7;则表达式x+a%3*(int)(x+y)%2/4的值是( )
设有定义:int x=2; ,以下表达式中,值不为6的是( )。
有如下的定义:struct test{ int num;char name[10];struct {int y;int m;int d;}birthday;}test1,*p=&test1;以下对内嵌结构体成员的引用形式错误的是______。
设有以下定义: struct student {int a; float b;}stu; 则结构体类型的关键字是 ________ ,用户定义的结构体类型名是 ________ ,用户定义的结构体变量是 ________ 。
设有变量定义struct str{int age;int num;}std,*p=&std; ,能正确引用结构变量std中成员age的表达式是( )。
设有以下定义typedef struct ex{int x;float y;char z;} str;则可以作为结构体类型名的是( )。
设有如下定义: struct sk {int a; float b;} data,*p;若要使p指向data中的a域,正确的赋值语句是().
设有下列数据定义语句,则"printf("%d\n",d[0],y/d[0],X*d[1].x);"的输出是()struct{int x;int y
设有定义:int x[2][3];,则以下关于二维数组X的叙述错误的是()。
设有下列定义:struct sk{int m;float x;}data,*q;若要使q指向data中的m域,正确的赋值语句是()。A.
若有下面的说明和定义: struct test { int m1; char m2; float m3; union uu {char u1[5]; int u2[2];}ua; }myaa; 则sizeof(stmct test)的值是()。
设有如下定义,struct sk{int a;float b;}data;int*p; 若要使P指向data中的a域,正确的赋值语句是(
"设有定义:int x=0, *p;赋值语句正确的是()
若存在变量定义和函数调用语句:int a=1;test_value(&a);则下面函数输出的正确结果是 。 void test_value(int *x) { printf("%d\n",*x--); }
设有一结构体类型变量定义如下,若对结构体变量w1的出生年份year进行赋值,下面正确的赋值语句是()。 struct date { int year; int month; int day; }; struct worker { char name[20]; char sex; struct date birthday; }w1;
假设有定义: struct country { int num; char name[10]; }x[5]={1,”China”,2,”USA”,3,”France”,4, “England”,5, “Spanish”}, p=x+2; 则执行cout<num<<“,”<<(p).name[2]的结果为()
设有如下定义: struct sk { int a; float b; }data,*p; 若有p=&data;,则对data中的a域的正确引用是 。
设有定义:int x[2][3];,则以下关于二维数组x 的叙述错误的是()
设有如下定义: struct student { int num; char name[20]; float score; }; 则下列语句的输出结果是());
若存在变量定义和函数调用语句:int a=1;test_value(&a);则下面函数输出的正确结果是 。 void test_value(int *x) { printf("%dn",*x--); }