更多"若有以下说明和语句,请选出哪个是对c数组元素的正确引用_______。"的相关试题:
[单项选择]若有说明语句“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%62f",&a,&b);
[单项选择]若有以下说明和语句:
struct st int n;char *ch;;
struce st a[3]=5,"abc",7,"def",9,"ghk",*p=a;
则值为6的表达式是______。
A. p++->n
B. p->n++
C. (*p).n++
D. ++P->n
[单项选择]若有以下定义的语句:
struct student
int age;
int num;;
struct student stu[3]=1001,20,1002,19,1003,21;
main( )
struct student *p;
p=stu;
…
则以下不正确的引用是( )。
A. (p++)->num
B. p++
C. (*p).num
D. P=&stu.age.
[单项选择]若有以下说明和语句,则值为6的表达式是______。
struct stu
int n;
struct stu*next;
;
struct stu a[3],*p;
a[0).n=5;a[0].next=&a[1];
a[1].n=7;a[1].next=&a[2];
a[2].n=9;a[2].next='/0';
p=&a[0];
A. p++->n
B. p->n++
C. ++p->n
D. (*p).n++
[单项选择]若有以下类型说明语句:
char w;int x;float y, z;
则表达式w*x+z-y的结果为______类型。
A. float
B. char
C. int
D. double
[单项选择]若有以下类型说明语句:
char w;int x;flooat y,z;
则表达式w*x+z-y的结果为______类型。
A. float
B. char
C. int
D. double
[单项选择]若有以下定义的语句:
struct student
int age;
int num;;struct student stu[3]=1001,20,1002,19,1003,21;
main( )
(struct student *p;
p=stu;…则以下不正确的引用是( )。
A. (p++)->num
B. p++
C. (*p).num
D. p=&stuage
[单项选择]若有以下说明和语句:
int c[4] [5] ,( * p) [5];
p=e;
能够正确引用c数组元素的是( )。
A. p+1
B. *(p+3)
C. *(p+1)+3
D. *(p[0]+2)
[单项选择]若有下列说明语句
int(* p)( );
则标识符p代表的是 ( )
A. 一个用于指向函数的指针变量,函数返回值的类型为int型
B. 一个带回值类型为整型的函数名
C. 一个用于指向整型数据的指针变量
D. 一个带回值类型为指针类型的函数名
[单项选择]若有以下定义语句:
double a[5]; int i=0;
能正确给a数组元素输入数据的语句是 ( )
A. scanf("%lf%lf%lf%lf%lf,a) ;
B. for(i=0;i<=5;i++)scanf("%lf,a+i);
C. while(i<5)scanf("%lf",&a[i++]);
D. while(i<5)seanf("%lf,a+i);