网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

若有下列说明和语句,则对结构体变量st中成员i的引用方式不正确的是( )。

Struct stu

{ int i;

int name;

}st,*p;

p=&St;

A.st.i

B.*p.i

C.(*p).i

D.p->i


参考答案

更多 “ 若有下列说明和语句,则对结构体变量st中成员i的引用方式不正确的是( )。Struct stu{ int i;int name;}st,*p;p=St;A.st.iB.*p.iC.(*p).iD.p->i ” 相关考题
考题 以下对结构体类型变量的定义中,不正确的是A.typedef struct aa{ int n;float m;}AA;AA tdl;B.#define AA struct aaAA{ int n;float m;} tdl;C.struct{ int n;float m;} aa;struct aa tdl;D.struct{ int n;float m;} tdl;

考题 已知函数的原形如下,其中结构体a为已经定义过的结构,且有下列变量定义struct a *f(int t1,int *t2,strcut a t3,struct a *t4)struct a p,*p1;int i;则正确的函数调用语句为A.p=f(10,i,p,p1);B.p1=f(i++,(int *)p1,p,p);C.p=f(i+1,(i+2),*p,p);D.f(i+1,i,p,p);

考题 设有以下说明语句struct stu{int a;float b;} stutype;则下面的叙述不正确的是A.struct是结构体类型的关键字B.struct stu是用户定义的结构体类型C.stutype是用户定义的结构体类型名D.a和b都是结构体成员名

考题 有以下说明和定义语句 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

考题 执行下列语句后,变量n的值是______。int n=0;for(int i=1;i<=3;i++)for(int j=1;j<<=i;j++)n++;

考题 若有以下定义的语句 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.

考题 若有下列说明和语句,则对结构体变量st中成员i的引用方式不正确的是( )。Stmct stu{ int i;int name;}st,*p;p=st;A.st.iB.*p.iC.(*p).iD.p->i

考题 已知有结构体: struct sk { int a; float b; }data,*p; 若有p=data,则对data的成员a的正确引用是( )。A.struct是结构体类型的关键字B.st是结构体类型名C.x、y、z都是结构体成员名D.struct str是结构体类型名

考题 若有下列说明和语句,已知int型数据占2个字节,则下列语句的输出结果是( )。stmct st{ char a[15];int b;double c;};printf("%d",sizeof(struct st));A.15B.8C.25D.2

考题 若有下列定义(设int类型变量占2个字节):int i=8,j=9;则下列语句:printf("i=%u,j=%x\n".i,j);输出的结果是( )。A.i=8,j=9B.8.9C.89D.i=8,i=8

考题 若有下列说明和语句,则对结构体变量st中成员i的引用方式不正确的是( )。Struct stu{inti;intname;}st,*#p;p=St;A.st.iB.*p.iC.(*p).iD.p->i

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

考题 若有以下说明和语句: 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 a; int b[2]; }a;A.结构体变量a与结构体成员a同名,定义是非法的B.程序只在执行到该定义时才为结构体st分配存储单元C.程序运行时为结构体st分配6个字节存储单元D.类型名struct st可以通过extern关键字提前引用(即引用在前,说明在后)

考题 若有结构体定义: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 a { char x[10] int y; }s,*t; t=S; 则对结构体变量s中的成员y的正确引用是( )。A.a.y;B.t->y;C.t.y;D.*t->y;

考题 若有以下说明和语句: 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 stu { int a; float b; }stutype; 则下面叙述不正确的是( )。A.struct是结构体类型的关键字B.structstu是用户定义的结构体类型C.stutype是用户定义的结构体类型名D.a和b都是结构体成员名

考题 若有如下说明,且int类型占两个字节,则正确的叙述为( )。 struct st {int a; int b[2]; }a;A.结构体变量a与结构体成员a同名,定义是合法的B.程序只在执行到该结构体时才为结构体st分配存储单元C.程序运行时为结构体st分配8字节存储单元D.类型名struct st可以通过extern关键字提前引用

考题 若有下列说明和语句,已知int型数据占2个字节,则下列语句的输出结果是( )。 struct st { char a[15]; int b; double c; }; printf("%d",sizeof (struct st));A.15B.8C.25D.2

考题 设有下列说明语句: strcut str {int x; float y; char z;}st; 则下列的叙述中不正确的是( )。A.struct是结构体类型的关键字B.st是结构体类型名C.x、y、x都是结构体成员名D.struct str是结构体类型名

考题 若有下列说明和语句,则对结构体变量st中成员i的引用方式不正确的是( )。 Struct stu { int i; int name; }st,*p; p=st;A.st.iB.*p.iC.(*p).iD.p->i

考题 若有以下定义和语句 struct a{ int n,m;}; struct a st[3]={{2,3},{4,5},{6,7}}; struct a*p=st;则以下错误的引用是A.(p++)-n; B.st[0].n; C.(*p).n; D.P=st.m,

考题 有以下说明和定义语句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 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 student{          int age;          int num;  }std, *p;  p=std;  则下面对该结构体变量std中成员age的引用方式错误的是()。 A、std.ageB、*p.ageC、(*p).ageD、p-age

考题 有以下说明语句:struct Point{int x;int y;};则叙述正确的是()A、正确的结构类型说明B、正确的结构变量说明C、错误的原因是结构中成员类型相同D、无意义的说明

考题 单选题若有以下说明和语句: struct student{          int age;          int num;  }std, *p;  p=std;  则下面对该结构体变量std中成员age的引用方式错误的是()。A std.ageB *p.ageC (*p).ageD p-age