网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

已知: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++;” 相关考题
考题 设x,y和z都是int型变量,且x=3,y=4,z=5,则下面表达式中,值为0的表达式是 A.xyB.x=yC.x||++yy-zD.!(x

考题 若有以下说明: int a[10]={1,2,3,4,5,6,7,8,9,10},,*p=a;则值为6的表达式是( )。A.*p+6 B.*(p+6) C.*p+=5 D.p+5

考题 已知x为整数变量,那么表达式int(hex(x),16)==x的值为_____________。

考题 下面程序的输出结果是【9】。#includevoid main(){int a[6]={1,2,3,4,5,6};for(int i=0;i 5;i++)cout cout }

考题 已知表达式int m[] = {0, 1, 2, 3, 4, 5, 6 }; 下面哪个表达式的值与数组下标量总数相等?() A.m.length()B.m.lengthC.m.length()+1D.m.length+1

考题 若有以下说明: int a[10]={1,2,3,4,5,6,7,8,9,10},*p=a; 则值为6的表达式是_______。A.*p+6B.*(p+6)C.*p+=5D.p+5

考题 若有定义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=3,b=4,c=5;,则下面的表达式中,值为0的表达式是( )。 A、a>bB、aC、(a||b)>cD、aE、!((a

考题 已知定义“int x = 1, *p”,则合法的赋值表达式是( )。 A、p = &xB、p = xC、*p = &xD、*p = *x

考题 若有定义和语句: 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

考题 已知int a[]={ 0,2,4,6,8,10 },*p=a+1;其值等于0的表达式是()A、*(p++)B、*(++p)C、*(p--)D、*(--p)

考题 已知x,y=map(int,[’1’,’2’]),那么表达式x+y的值为()。

考题 若已定义   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的值是  ②  。

考题 若有语句:int x=6,*p=x;则下面正确的表达式是()A、++xB、(*p)--C、(x+5)D、p=1000

考题 设a是char型变量,其值字符为’1’,则把其值变成整数1的表达式是()。A、(int)aB、int(a)C、a=a-48D、a/(int)a

考题 表达式{1,2,3,4,5,6}^{5,6,7,8}的值为()。

考题 单选题已知int a[]={ 0,2,4,6,8,10 },*p=a+1;其值等于0的表达式是()A *(p++)B *(++p)C *(p--)D *(--p)

考题 问答题若已定义   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}的值为()。