• 2022-06-09
    已知: Struct st{ Int num; Char sex; Float score; }stud,*p=&stud; 则对于结构体变量stud的成员num正确的引用是_________。
  • p->num

    内容

    • 0

      struct student { int num; char sex; char name[20]; float score; } st ; 给st的num成员赋值为16,应写出的语句是 ;

    • 1

      设有以下说明: struct stud{ char num[6]; int s[4]; double ave;}a; 则变量a在内存所占字节数是________。

    • 2

      有如下结构体定义,能够正确引用结构体的是()。 struct student { long num; char name[10]; char sex; int age; float score; }stu;

    • 3

      下列结构体中定义正确的是 A: record{<br/>int no;<br/>char num[16];<br/>float score;<br/>} B: struct record{<br/>int no;<br/>char num[16];<br/>float score;<br/>} C: struct record{<br/>int no;<br/>char num[16];<br/>float score;<br/>}; D: struct record{<br/>int no<br/>char num[16]<br/>float score<br/>};

    • 4

      设有以下结构类型说明和变量定义,则变量a在内存所占字节数是_______(TC环境),________表示结构体a变量的成员num数组的元素num&#91;2&#93;。 struct stud {char num&#91;6&#93;; int s&#91;4&#93;; double ave; }a;