( 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;

( 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;


相关考题:

下列函数不能和函数voidprint(char)构成重载的是() A、intprint(int);B、voidprint(char,char);C、intprint(char);D、voidprint(int,int);

下列定义语句中,错误的是A.int px*;B.char*acp[10];C.char(*pac)[10];D.int(*p)();

设有以下函数:voidfun(intn,char}s){……}则下面对函数指针的定义和赋值均正确的是( )。A.void(*pf)(int,char);pf=fun;B.void+pf( );pf=fun;C.void*pf( );*pf=fun;D.void(*pf)(int,char*);pf=fun;

自动类型转换规定的优先次序是( )。A.short,byte,char→long→int→float→doubleB.short,byte,char→int→long―float→doubleC.byte,short,char→long→int→float→doubleD.byte,short,char→int→long→float→double

各种基本数据类型的存贮空间正确的长度排列为()。A.int < char <float<doubleB.double<float <int<charC.char<int <float<doubleD.float<int <char<double

6、各种基本数据类型的存储空间正确的长度排列为()。A.int < char <doubleB.double <int<charC.char<int <doubleD.int <=char<double

各种基本数据类型的精度排列为()。A.int< char <float<doubleB.double<float <int<charC.char<int <float<doubleD.float<int <char<double

各种基本数据类型的存贮空间正确的长度排列为()。A.int < char <doubleB.double <int<charC.char<int <doubleD.int <=char<double

各种基本数据类型的存储空间正确的长度排列为()。A.int < char <doubleB.double <int<charC.char<int <doubleD.int <=char<double

各种基本数据类型的存贮空间正确的长度排列为 ()。A.char<int <doubleB.double <int<charC.int < char <doubleD.int <=char<double