更多"有下列程序段: struct st int x;int *y;*p"的相关试题:
[单项选择]有以下程序段
struct st
{int x;int*y;}*pt;
int a[]={l,2},b[]={3,4};
struct st C[2]={l0,a,20,b}
pt=C;
以下选项中表达式的值为11的是【 】。
A. *pt->Y
B. pt->X
C. ++pt->x
D. (pt++)->X
[单项选择]有以下程序段:
struct st
int x; int * y; * pt;
int a[] = 1,2 ,b[] = 3,4;
struct st c[2] = 10,a,20,b;
pt=c;
以下选项中表达式的值为11的是( )。
A. *pt->y
B. pt->x
C. ++pt->x
D. (pt++)->x
[单项选择]有以下程序段:
struct st
int X;int*Y;*pt;
int a[]=[1,2],b[]=[3,4];
struct st c[2]=[10,a,20,b];
pc=c;
以下选项中表达式的值为11的是( )。
A. *pt->y
B. pt->X
C. ++pt->X
D. (pc++)->X
[单项选择]有下列程序段:
struct St
int x;int *y;)*pt;
int a[]=1,2),b[]=3,4);
struct st c[2]=10,a,20,b);
pt=c;
下列选项中表达式的值为11的是( )。
A. *pt- >y
B. pt- >x
C. + +pt- >x
D. (pt+ +)->x
[单项选择]有下列程序段:
struct st
int x;int*y;*pt;
int a[]=1,2,b[]=3,4;
stmct st c[2]=10,a,20,b;
pt=c;
下列选项中表达式的值为11的是( )。
A. *pt->y
B. pt->x
C. ++pt->x
D. (pt++)->X
[单项选择]有以下程序段:
typedef struct NODE
{int num; struct NODE *next;
}OLD;
以下叙述中正确的是【 】。
A. 以上的说明形式非法
B. NODE是一个结构体类型
C. OLD是一一个结构体类型
D. OLD是一个结构体变量
[单项选择]若有以下程序段:
struct st
int n;
int*m:
;
int a=2,b=3,c=5;
struct st s[3]=(101,&a,102,&c,103,&b);
main( )
struct st*p;
p=s;
则以下表达式中值为5的是( )。
A. (*p).m
B. *(p+1)->m
C. *(p++)->n
D. (p++)(*m)
[单项选择]有下列程序段:
struct st
intx;int*y;*pt;
int a[]=1,2,b[]=3,4;
struct st c[2]=10,a,20,b;
pt=c;
下列选项中表达式的值为11的是( )。
A. *pt->y
B. pt->x
C. ++pt->x
D. (pt++)->x
[单项选择]若有以下程序段:
struct st
int n;
int*m;;
int a=2,b=3,c=5;
struct st s[3]=(101,&a,102,&c,103,&b;
main( )
struct st*p;
p=s;
…
则以下表达式中值为5的是( )。
A. (p++)->m
B. *(p++)->m
C. (*p).m
D. *(++p)->m
[单项选择]有以下程序段
typedef struct node{int data;struct node * next;} * NODE;
NODE p;
以下叙述中正确的是【 】。
A. p是指向structnode结构变量的指针的指针
B. NODEp;语句出错
C. p是指向structnode结构变量的指针
D. p是structnode结构变量
[单项选择]
有以下程序段:
typedef struct NODE
{int num; struct NODE *next;
}OLD;
以下叙述中正确的是()
A. 以上的说明形式非法
B. NODE是一个结构体类型
C. OLD是一一个结构体类型
D. OLD是一个结构体变量
[单项选择]有以下程序段
typedef struct node(int data; struct node *next;) *NODE;
NODE p;
以下叙述中正确的是______。
A. P是指向struct node结构变量的指针的指针
B. NODE p;语句出错
C. P是指向struct node结构变量的指针
D. P是struct node结构变量
[单项选择]有以下程序段:
typedef struct node(int data;struct node*next;)*NODE;
NODE P;
以下叙述中正确的是______。
A. P是指向struct node结构变量的指针的指针
B. NODE p;语句出错
C. P是指向struct node结构变量的指针
D. P是struct node结构变量
[单项选择]若有如下程序段: struct student { int num;float score; } stu[3]={{10,85},{60,58},{32,23}}; main( ) { struct student*t; t=stu; } 则下面表达式中值为58的是( )。
A. (*.num
B. *(t++)->num
C. (*++score
D. (++->score