对结构变量 person的出生年份进行赋值时,下列中正确的赋值语句是( )。[br][/br]struct date{int year;int month;int day};[br][/br]struct man[br][/br]{[br][/br]char name|20];[br][/br]char sex;[br][/br]struct date birthday;[br][/br]}person;
A: year=1958;
B: irthday.year=1958;
C: person.birthday.year=1958;
D: person.year=1958;
A: year=1958;
B: irthday.year=1958;
C: person.birthday.year=1958;
D: person.year=1958;
举一反三
- 有如下定义: struct date { int year, month, day; }; struct worklist { char name[20]; char sex; date birthday; }person; 对结构体变量person的出生年份进行赋值时,下面正确的赋值语句是( )。 A: year=1958 B: birthday.year=1958 C: person.birthday.year=1958 D: person.year=1958
- Struct date{int year,month,day;};Struct worklist{Char name[20];Char sex;Struct date birthday;}person;对结构体变量person的出生年份进行赋值时,下面正确的赋值语句是 A: worklist .birthday.year=1978 B: birthday.year=1978 C: person.birthday.year=1958 D: person.year=1958
- 有如下定义: Struct date{ int year,month,day;};Struct worklist{Char name[20];Char sex;Struct date birthday;}person;对结构体变量person的出生年份进行赋值时,下面正确的赋值语句是____________ 。 A: worklist .birthday.year=1978 B: birthday.year=1978 C: person.birthday.year=1958 D: person.year=1958
- 下列表达式中正确的是()。 A: struct person{<br/>int age; <br/>char<br/>name[8];<br/>char sex;<br/>}personl,person2; B: struct person{<br/>int <br/>age;<br/>char<br/>name[8]; <br/>char sex;<br/>} person<br/>personl,person2; C: struct person{<br/>int <br/>age;<br/>char<br/>name[8];<br/>char sex;<br/>};personl,person2; D: struct person{<br/>int <br/>age;<br/>chat<br/>name[8]="WangLin";<br/>char<br/>sex="M";<br/>} person1
- 有如下定义: struct date{ int year,month,day; };struct worklist{ char sex; struct date birthday; }person;对结构体变量 person 的出生年份进行赋值时,下面正确的赋值语句是 。 A: person.birthday.year=2014 B: year=2014 C: birthday.year=2014 D: person.year=2014