更多"有下列程序段: struct St int x;int *y;)*"的相关试题:
[单项选择]有以下程序段:
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;
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);
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+1)->m
C. *(p++)->n
D. (p++)(*m)
[单项选择]有以下程序段
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结构变量
[单项选择]有下列程序段:
typedef struct NODE
int num;struct NODE*next;
OLD;
下列叙述中正确的是( )。
A. 以上的说明形式非法
B. NODE是一个结构体类型
C. OLD是一个结构体类型
D. OLD是一个结构体变量
[单项选择]有以下程序段:
typedef struct NODE
int num, struct NODE *next;
OLD;
以下叙述中不正确的是( )。
A. 以上的说明形式合法
B. NODE是一个结构体类型
C. OLD是一个结构体类型
D. NODE是一个结构体变量
[单项选择]若有以下程序段:
struct dent
int n;
int *m;
;
int a=1,b=2,c=3;
struct dent s[3]=101,&a,102,&b,103,&c;
struct dent *p=s;
则以下表达式中值为2的是( )。
A. (p++)->m
B. *(p++)->m
C. (*p).m
D. *(++p)->m
[单项选择]有以下程序段:
typedef struct NODE
int num;struct NODE*next;
OLD;
以下叙述中正确的是( )。
A. 以上的说明形式非法
B. NODE是一个结构体类型
C. OLD是一个结构体类型
D. OLD是一个结构体变量