• 2021-04-14
    char name[10]=“Mary”;char*pName=name;int i=5;对上面语句描述错误的是()。
  • D

    内容

    • 0

      有如下定义 struct Employee { char name[12]; int age; char sex; } emp[10],*p=std; 以下语句错误的是________。 答

    • 1

      以下变量定义,错误的是: A: struct student{int num, char name[20];} s; B: struct {int num, char name[20];} s; C: struct student{int num, char name[20];}; struct student s; D: struct student{int num, char name[20];} ; student s

    • 2

      下列声明结构体变量错误的是( ) A: A.struct student  { int no; char name[16]; }st1,st2; B: B. struct student{ int no;char name[16];};struct student st1,st2; C: C.struct student { int no; char name[16]; }; struct st1,st2; D: D.struct student{ int no;char name[16]; };student st1,st2;

    • 3

      一下选项中,定义结构体变量错误的是( ) A: struct student {int num; char name[30];<br> }wangming; B: struct {int num; char name[30];<br> }wangming; C: struct student {int num; char name[30];<br> }; struct student wangming; D: struct student {int num; char name[30];<br> }; student wangming;

    • 4

      有以下结构体说明、变量定义和赋值语句 struct STD { char name[10]; int age; char sex; } s[5],*ps; ps=&s[0]; 则以下scanf函数调用语句有错误的是________