若有以下定義:int a[]={1,2,3,4,5,6,7,8,9,10},*p=a; 則值為3的是( )
若有以下定義:int a[]={1,2,3,4,5,6,7,8,9,10},*p=a; 則值為3的是( )
若有以下定義:int a[]={1,2,3,4,5,6,7,8,9,10},*p=a; 則值為3的是( B)
A、p+=2;*(p++);B、p+=2;*++p;
C、p+=3;*p++;D、p+=2;++*p;
若有以下定義:int a[]={1,2,3,4,5,6,7,8,9,10},*p=a; 則值為3的是( B)
A、p+=2;*(p++);B、p+=2;*++p;
C、p+=3;*p++;D、p+=2;++*p;
數(shù)學(xué)人氣:112 ℃時間:2019-10-24 03:20:15
優(yōu)質(zhì)解答
在數(shù)組中,下標(biāo)(即[]里的數(shù)值)從0開始算起,如a[0]=1,a[1]=2.a[9]=10;p是指下標(biāo)的值,指數(shù)組中的第p+1個元素,因?yàn)閜的起始值為0.p+=2等效于p=p+2,所以p=2,即a[2]=3.*++p是指數(shù)組中++p所在位置的具體值.
我來回答
類似推薦
- 若有以下定義,“int a[10]={1,2,3,4,5,6,7,8,9,10},*p=a”,則值為6的表達(dá)式是
- 若有以下定義:int a[]={1,2,3,4,5,6,7,8,9,10},*p=a; 則值為3的是( )A、p+=2;*(p++);B、p+=2;*++p;
- 6. 如果有以下定義:int a[10]={1,2,3,4,5,6,7,8,9,10},*p=&a[7];則表達(dá)式*p++的值是多少?
- 若有定義:int a[]={1,2,3,4,5,6,7,8,9,10,11,12},*p[3],m;,閱讀下面程序段,寫出運(yùn)行結(jié)果:
- int a[ ][3]={1,2,3,4,5,6,7,8,9,10,11,12};int*p=a;求 *(*(a+2)+2)的含義(或值
- 函數(shù)f(x)=sinx-cosx^2的最小值是?
- 英語翻譯
- I took my grandpa to the hospital this morning,_____ I missed the first class.
- So crazy
- 方差是各個數(shù)據(jù)與平均數(shù)之差的平方的平均數(shù)
- 函數(shù)y=f(x)與它反函數(shù)y=f^-1(x)怎么讀?
- These are photos of my families.Look at them 改錯
猜你喜歡
- 1平面與平面重合,是否屬于平行一類?那重合的兩直線,也屬于平行一類的嗎?
- 2非洲每年因饑餓死亡的人數(shù)及現(xiàn)在饑餓人口數(shù)量拜托各位了 3Q
- 3decide to do sth.還=什么
- 4(7/8)o you think of london?B:5.____london is one of the liveliest cities
- 5啤酒可以托運(yùn)嗎
- 6邊長為2√6的等邊三角形的中心到一邊的距離為?
- 7please give your hand to help me
- 8已知2的X次方等于3的Y次方等于6的Z次方不等等于1,證明X分之一加Y分之一等于Z分之一.
- 9幫我做做?
- 10機(jī)械分析天平TG628A的使用說明書
- 11in winter ,we wear warm coats to protect our bodies_.
- 12( )was most importance to her ,she told me,was her family it this what as