[单选题]

若有以下说明语句:structstudent{intnum;charname[];floatscore;}stu;则下面的叙述不正确的是:()

A . struct是结构体类型的关键字

B . structstudent是用户定义的结构体类型

C . num,score都是结构体成员名

D . stu是用户定义的结构体类型名

参考答案与解析:

相关试题

有如下说明和定义语句:structstudent{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

  • 查看答案
  • 若有说明语句"int a;float b;”,以下输入语句正确的是()

    [单选题]若有说明语句"int a;float b;”,以下输入语句正确的是()A.scanf("%f%f",&a,&b) ;B.scanf("%f%d",&a;&b) ;C.scanf("%d,%f",&a,&b) ;D.scanf("%6.2f%6.2f",&a,&b) ;

  • 查看答案
  • 若有以下说明语句:typeabct1asintegert2assingleend

    [单选题]若有以下说明语句:typeabct1asintegert2assingleendtypedimabc1asabc则下面表示记录变量ABC1的成员T1正确的是( )A.ABC1→T1B.T1C.T1.ABC1D.ABC1.T1

  • 查看答案
  • 若有以下说明和语句:sturct st { int n;char *ch;};

    [单选题]若有以下说明和语句:sturct st { int n;char *ch;}; struct st a[3]={5, "abc",7, "def",9, "ghk"},*p=a;则值为6的表达式是( )。A)p++->n B)p->n++C)(*p).n++ D)++p->n

  • 查看答案
  • 若有说明语句:int*ptr[10];以下叙述正确的是(  )。

    [单选题]若有说明语句:int*ptr[10];以下叙述正确的是(  )。A.ptr是一个具有10个指针元素的一维数组,每个元素都只能指向整型变量B.ptr是指

  • 查看答案
  • 若有以下说明和语句:struct st{int n;char * ch;};st

    [单选题]若有以下说明和语句: struct st{int n;char * ch;}; struct st a[3]={5,"abc",7,"def",9,"ghk"},*p=a; 则值为6的表达式是 ______。A.p++->nB.p->n++C.(*p).n++D.++p->n

  • 查看答案
  • 若有以下说明和语句:struct st{int n;char *ch;};str

    [单选题]若有以下说明和语句: struct st{int n;char *ch;}; struct st a[3]={5,"abc",7,"def",9,"ghk"},*p=a; 则值为6的表达式是______。A.p++->nB.p->n++C.(*p).n++D.++p->n

  • 查看答案
  • 若有以下说明和语句:struct st{int n;char*ch;}struc

    [单选题]若有以下说明和语句: struct st{int n;char*ch;} struct st a[3]={5,"abc"7,"def",9",ghk"),*p=a; 则值为6的表达式是______。A.p++->nB.p->n++C.(*p).n++D.#NAME?

  • 查看答案
  • 若有以下说明和语句:struct st{int n;char *ch;};str

    [单选题]若有以下说明和语句: struct st{int n;char *ch;}; struct st a[3]{5,"abc",7,"def",9,"ghk"},*p=a 则值为6的表达式是______。A.p++->nB.p->n++C.(*p).n++D.++p->n

  • 查看答案
  • 若有以下的说明和语句,则在执行for语句后,*(* pt£«1)£«2)表示的数

    [单选题]若有以下的说明和语句,则在执行for语句后,*(* pt+1)+2)表示的数组元素是 ( ) int t[3] [3],*pt[3],k; for(k=0;k<3;k+ +)pt[k]=&t[k] [0];A.t[2] [0]B.t[2] [2]C.t[1] [2]D.t[2] [1]

  • 查看答案
  • 若有以下说明语句:structstudent{intnum;charname[]