网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
已知:int a[]={1,2,3,4,5,6},*p=a;下面表达式中其值为5的是【 】
A.p+=3;cout<<*(p++);
B.p+=5; cout<<*p++ ;
C.p+=4; cout<<*++p;
D.p+=4; cout<<*p++;
参考答案和解析
p+=4; cout<
更多 “已知:int a[]={1,2,3,4,5,6},*p=a;下面表达式中其值为5的是【 】A.p+=3;cout<<*(p++);B.p+=5; cout<<*p++ ;C.p+=4; cout<<*++p;D.p+=4; cout<<*p++;” 相关考题
考题
已知表达式int m[] = {0, 1, 2, 3, 4, 5, 6 }; 下面哪个表达式的值与数组下标量总数相等?()
A.m.length()B.m.lengthC.m.length()+1D.m.length+1
考题
若有定义int x,*pb;则正确的赋值表达式是()。
A.pbB.int a[2] [ ]{1,2,3,4,5,6};C.int a[ ] [3]{1,2,3,4,5,6};D.int a[2,3]{1,2,3,4,5,6}
考题
已知表达式int m[ ]{0,1,2,3,4,5,6)};,下面表达式的值与数组下标量总数相等的是( )。A.m.length( )B.m.lengthC.m.length( )+1D.m.length+1
考题
下面程序执行的结果是【 】。 include using namespace std; void main(){ int sum=0; i
下面程序执行的结果是【 】。include <iostream>using namespace std;void main(){int sum=0;int array[6]={1,2,3,4,5,6};int *p;p=array[0];for(int i=0;i<6;i++){sum=sum+*p;p++;}cout<<sum;}
考题
设有以下程序段:struct st{int n;struct st *next;};static struct st a[3]={5,a[1],7,a[2],9,'\0'),*p;p=a[0];下面选项中,其值为6的表达式为______。A.P++->nB.p->n++C.(*p).n++D.++p->n
考题
已知表达式int m[]={0,1,2,3,4,5,6};,下面表达式的值与数组下标量总数相等的是( )。A.m.length()B.m.1engthC.m.1ength()+1D.m.1ength+1
考题
执行下面的语句后,表达式*(p[0]+1)+**(q+2)的值为______。 int a[]={5,4,3,2,1},*p[]={a+3,a+2,a+1,a},**q=p;A.8B.7C.6D.5
考题
设有以下程序: struct st{int n;struct st *next;}; static struct st a[3]={5,a[1],7,struct st *next;}; static struct st a[3]={5,a[1],7,a[2],9,'\0'},*p; p=a [0]; 下面选项中,表达式值为6的是______。A.p++->nB.p->n++C.(*p).n++D.++p->n
考题
设x,y和z都是int型变量,且x=3,y=4,z=5,则下面表达式中,值为0的表达式是( )。A. B. S
设x,y和z都是int型变量,且x=3,y=4,z=5,则下面表达式中,值为0的表达式是( )。A.B.C.D.
考题
设有以下程序: struct st{int n;struct st*next;}; static struct st a[3]={5,a[1],7,a[2],9,'\0\},*p; p=a[0];下面其值为6的表达式为______。A.p++->nB.p->n++C.(*p).n++D.++p->n
考题
若有定义和语句: int a[10]={1,2,3,4,5,6,?,8,9,10},* p=a; 则不能表示a数组元素的表达式是 ( )A.* pB.a[10]C.* aD.a[p-a)
考题
下列程序的输出结果是 ______。includevoid main(){ int a[]={1,2,3,4,5,6},*p,**q;
下列程序的输出结果是 ______。 #include <iostream.h> void main() { int a[]={1,2,3,4,5,6},*p,**q; p=a; q=p; cout<<*(p++); cout<<**q<<end1; }A.34B.56C.12D.23
考题
若已定义 struct num{ int a; int b; float f; } n={1,3,5.0}; struct num *p=n; 则表达式p-b/n.a*++p-b的值是 ① ,表达式(*p).a+p-f的值是 ② 。
考题
问答题若已定义 struct num{ int a; int b; float f; } n={1,3,5.0}; struct num *p=n; 则表达式p-b/n.a*++p-b的值是 ① ,表达式(*p).a+p-f的值是 ② 。
考题
填空题表达式{1,2,3,4,5,6}^{5,6,7,8}的值为()。
热门标签
最新试卷