[主观题]

若有定义和语句:struct student { int num; char name[10]; float score;} s[5]={{1,"lili",98.5},{9,"xiaohua",66}},*p=s;printf("%d",*p++);输出结果是1。( )

此题为判断题(对,错)。

参考答案与解析:

相关试题

若有以下定义的语句struct student{int age;int num;

[单选题]若有以下定义的语句 struct student {int age; int num;}; struct student stu[3]={{1001,20},{1002,19},{1003,21}}; main() {stmct student *p; p=stu; …} 则以下不正确的引用是A.(p++)->numB.p++C.(*p).numD.P=&stu.age.

  • 查看答案
  • 若有结构体定义:struct stu{int num;char sex;int

    [单选题]若有结构体定义: struct stu{int num; char sex; int age; }a1,a2; 则下列语句中错误的是( )。A.printf("%d,%c,%d",a1);B.a2.age=a1.age;C.a1.age++;D.a1.num=5;

  • 查看答案
  • 若有结构体定义: struct stu {int num; char sex;

    [单选题]若有结构体定义:struct stu {int num;char sex;int age;}a1,a2;则下列语句中错误的是( )。A.printf("%d%c,%d",a1);B.a2.age=a1.age;C.a1.age++;D.a1.num=5;

  • 查看答案
  • 有以下说明和定义语句struct student{ int age; char

    [单选题]有以下说明和定义语句struct student{ int age; char num[8];};struct student stu[3]={{20,"200401"},{21,"200402"},{10/9,"200403"}};struct student *p=stu;以下选项中引用结构体变量成员的表达式错误的是A.(p++)->num B.p->num C.(*p).num D.stu[3].age

  • 查看答案
  • 有以下说明和定义语句 struct student {int age;char

    [单选题]有以下说明和定义语句 struct student {int age;char num[8]; }; struct student stu[3]={{20,"200401"},{21,"200402"},{10/9,"200403"}}; struct student*p=stu;以下选项中引用结构体变量成员的表达式错误的是______。A.(p++)->numB.p->numC.*p.numD.stu[0].age

  • 查看答案
  • 有以下说明和定义语句:struct student{int age; char

    [单选题]有以下说明和定义语句:struct student{int age; char num[8] ;};struct student stu [3] = { { 20, "200401" } , {21, "200402" } , {19, "200403" } };stract student * p = stu;以下选项中引用结构体变量成员的表达错误的是( )。A.(p++) ->numB.p- >numC.( *p).numD.stu[3].age

  • 查看答案
  • 若有结构体定义: struct stu{int num; char sex; i

    [单选题]若有结构体定义:struct stu{int num;char sex;int age;}al,a2;则下列语句中错误的是( )。A.printf("%d,%C,%d",a1);B.a2.age=a1.age;C.a1.age++;D.a1.num=5;

  • 查看答案
  • 有以下说明和定义语句struct student{int age;char nu

    [单选题]有以下说明和定义语句 struct student { int age;char num[8]; struct student stu[3]={{20,"200401"},{21,"200402"},{19,"200403"}}; struct student *p=stu;}; 以下选项中引用结构体变量成员的表达式错误的是A.(p++)->numB.p->numC.(*p).numD.stu[3].age

  • 查看答案
  • 有以下定义和语句:struct students{int num;char na

    [单选题]有以下定义和语句: 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;

  • 查看答案
  • 有以下定义和语句Struct Workers{int num;char name

    [单选题]有以下定义和语句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 student { int num; char n