网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
若有以下程序段
则以下选项中值为6的表达式是
A.P->n
B.(*p).n
C.p->n++
D.++(P->n)
参考答案
更多 “ 若有以下程序段则以下选项中值为6的表达式是A.P-nB.(*p).nC.p-n++D.++(P-n) ” 相关考题
考题
若有以下说明和语句: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
考题
若有以下程序段: 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).mB.*(p+1)->mC.*(p++)->nD.(p++)(*m)
考题
若有以下程序段: 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++)->mB.*(p++)->mC.(*p).mD.*(++p)->m
考题
有以下程序段: int a=1,b=2,c=3; struct dent { int n ; int *m; } s[3] = {{101,a}, {102,b},{103,c}}; struct dent *p=s; 则以下表达式中值为2的是()。A.(p++)->mB.*(p++)->mC.(*p).mD.*((p)->m)
考题
6、有以下程序段: int a=1,b=2,c=3; struct dent { int n ; int *m; } s[3] = {{101,a}, {102,b},{103,c}}; struct dent *p=s; 则以下表达式中值为2的是()。A.(p++)->mB.*(p++)->mC.(*p).mD.*((p)->m)
考题
若有以下程序段,则以下表达式中值为2的是()。struct dent { int no; int *m; }; int a=1,b=2,c=3; struct dent s[3]={{101,a},{102,b},{103,c}}; int main() { struct dent *p; p=s; … }A.(p++)->mB.* (p++)->mC.(*p).mD.*(p)->m
考题
若有以下定义和语句: int a[]={6,7,8,9,10},*p=a; *(p+2)+=2; cout<<*p<<" "<<*(p+2)<<endl; 则下列程序段的输出结果是______。
热门标签
最新试卷