网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
单选题
有以下定义和语句:
struct workers
{
int num;
char name[20];
char c;
struct
{
int day;
int month;
int year;
}s;
};
struct workers w,*pw;
pw=&w;
能给w中year成员赋1980的语句是( )。
A
*pw.year=1980;
B
w.year=1980;
C
pw->year=1980;
D
w.s.year=1980;
参考答案
参考解析
解析:
w是一个结构体变量,pw是一个结构体指针变量,指向w所在的内存单元。A项错误,pw是指针,所以在引用其内部变量时应该用操作符“->”而不是“.”。BC两项错误,year是结构体workers中的结构体成员s中的成员。答案选择D选项。
w是一个结构体变量,pw是一个结构体指针变量,指向w所在的内存单元。A项错误,pw是指针,所以在引用其内部变量时应该用操作符“->”而不是“.”。BC两项错误,year是结构体workers中的结构体成员s中的成员。答案选择D选项。
更多 “单选题有以下定义和语句: structworkers { intnum; charname[20]; charc; struct { intday; intmonth; intyear; }s; }; structworkersw,*pw; pw=w; 能给w中year成员赋1980的语句是( )。A *pw.year=1980;B w.year=1980;C pw-year=1980;D w.s.year=1980;” 相关考题
考题
已知职工记录描述如下,structworker{intno;charname[20];charsex;struct{intday;intmonth;intyear;}birth;};structworkerw;设变量w中的“生日”是“1993年10月25日”,下列对“生日”的正确赋值方式是()
A、day=25;month=10;year=1993;B、w.birth.day=25;w.birth.month=10;w.birth.year=1993;C、w.day=25;w.month=10;w.year=1993;D、birth.day=25;birth.month=10;birth.year=1993;
考题
若要从学生表中检索出1980年1月1日以后(含1月1日)出生的所有学员,可应用如下SQL语句SELECT * FROM student WHERE ______请给出恰当的表达式以完成该语句A)csrq={^1980-1-1} B)csrq{-1980-1-1}C)csrq= {^1980-1-1} D)csrq{^1980-1-1}
考题
In ________ many people in ________ thirties went to university for further education.
A.1980s…theB.the 1980s…/C.1980s…theirD.the 1980s…their
考题
程序:classMyDate{privateintyear;privateintmonth;privateintday;publicMyDate(intyear,intmonth,intday){this.year=year;this.month=month;this.day=day;}//OverrideMethod}为了让newMyDate(1980,11,9)==(判断是否相等)newMyDate(1980,11,9)返回true,必须在OverrideMethod处覆盖哪个方法?()A.hashCodeB.equalsC.toStringD.notify
考题
若有以下定义和语句,则对w数组元素的非法引用是 ______。 int w[2][4],(*pw)[4];pw=w;A.*(w[0]+2)B.*pw[2]C.pv[0][0]D.*(pw[1]+2)
考题
有以下定义和语句: struct students {int num;char name[20];char c; struct {int grade1;int grade2;}s; }; struct students w,*pw; *pw=w; 下列赋值语句不正确的是( )。A.w.num=1002;B.w.grade1=85;C.pw->num=1002;D.w.s.grade2=85;
考题
若要从学生表中检索出1980年1月1日以后(含1月1日)出生的所有学员,可应,用如下 SQL语句 SELECT*FROM student WHERE 请给出恰当的表达式以完成该语句A.csrq<={^1980-1-1}B.csrq<{^1980-1-1}C.csrq>={^1980-1-1}D.csrq>{^1980-1-1}
考题
建立一个基于“学生”表的查询,要查找“出生日期”(数据类型为日期/时间型)在1980-06-06~1980-07-06间的学生,在“出生日期”对应列的“准则”行中应输入的表达式是( )。A.between 1980-06-06 and 1980-07-06B.between #1980-06-06# and #1980-07-06#C.between 1980-06-06 Or 1980-07-06D.between #1980-06-06# or #1980-07-06#
考题
若有以下定义和语句: iht w[2][3],(* pw)[3];pw=w; 则对w数组元素的非法引用是 ( )A.* (w[0]+2)B.* (pw + 1)[2]C.pw[0][0]D.* (pw[1]+2)
考题
有以下定义和语句Struct Workers{ int num;char name[20];char c;struct{ int day;int month;int year;}s;};Struct Workers W,*pe;PW=W;能给W中yeaR成员赋1980的语句是A.*pW.yeaR=1980;B.W.yeaR=1980;C.pW->yeaR=1980;D.W.s.yeaR=1980;
考题
有以下定义和语句: struct workers {int num;char name[20];char C; struct {int day;int month;int year;)S; }; struct workers w,*pw; pw=w; 能给w中year成员赋1980的语句是( )。A.*pw.year=1980;B.w.year=1980;C.pw-year=1980D.w.S.year=1980;
考题
若有以下定义和语句,则下列选项中对w数组元素非法引用的是______。 int w[2] [3], (*pw) [3]; pw=w;A.w[0]+2B.*(pw+1)[2]C.pw[0][0]D.*(pw[1]+2)
考题
若有以下定义和语句,则对w数组元素非法引用的是______。 int w[2][3],(*pw)[3];pw=w;A.w[0]+2B.*(pw+1)[2]C.pw[0][0]D.*(pw[1]+2)
考题
建立一个基于"学生"表的查询,要查找"出生日期"(数据类型为日期/时间型)在1980-06-06和1980-07-06间的学生,在"出生日期"对应列的"准则"行中应输入的表达式是( )。A.between 1980 -06-06and 1980-07-06B.between#1980-06-06#and#1980007-06#C.between 1980-06-06 or1980-07-06D.between#1980-06-06#or#1980007-06#
考题
若有定义和语句: int w[2][3],(* pw)[3];pw=w; 则对w数组元素的非法引用是 ( )A.* (w [0] +2)B.* (pw+1)[2]C.pw[0][0]D.* (pw [1]+2)
考题
建立一个基于“学生”表的查询,要查找“出生日期”(数据类型为日期/时间型)在1980-06-06和1980-07-06间的学生,在“出生日期”对应列的“准则”行中应输入的表达式是( )。A.between 1980-06-06 and 1980-07-06B.between #1980-06-06#and#1980-07-06#C.between 1980-06-060r1980-07-06D.between #1980-06-06#or#1980-07-06#
考题
( 38 )有以下定义和语句struct workers{ int num;char name[20];char c;struct{ int day; int month; int year; } s;} ;struct workers w,*pw;pw = w;能给 w 中 year 成员赋 1980 的语句是A ) *pw.year = 198O;B ) w.year=1980;C ) pw-year=1980;D ) w.s.year=1980;
考题
以下结构体的定义语句中,正确的是()A、structstudent{intnum;charname[10];intage;};stu;B、struct{intnum;charname[10];intage;}student;structstudentstu;C、structstudent{intnum;charname[10];intage;}stu;D、structstudent{intnum;charname[10];intage;};studentstu;
考题
定义和语句是:int w[2][3],(* pw)[3];pw=w;则对w数组元素的非法引用是()A、* (w[O]+2)B、* pw[2]C、pw[0][O]D、* (pw[1]+2)
考题
单选题He served the army in ______ when he was in_______.A
1980’s; his twentiesB
1980’s; the twentiesC
the 1980’s; his twentiesD
the 1980’s; the twenties
考题
单选题______that the trade between the two countries reached its highest point.A
During the 1980'sB
That it was in the 1980'sC
It was in the 1980'sD
It was the 1980's
考题
单选题定义和语句是:int w[2][3],(* pw)[3];pw=w;则对w数组元素的非法引用是()A
* (w[O]+2)B
* pw[2]C
pw[0][O]D
* (pw[1]+2)
热门标签
最新试卷