【单选题】【消耗次数:1】
有以下程序段int?a[10]={1,2,3,4,5,6,7,8,9,10},*p=&a[3],b;b=p[5];b中的值是()
5
6
8
9
参考答案:
复制
纠错
相关题目
【单选题】 已知int a[10]={0,1,2,3,4,5,6,7,8,9},*p=a;不能表示数组a中元素的式子是()
①  *a
②  *p
③  a
④  a[p-a]
【简答题】 int a[10]={0,1,2,3,4,5,6,7,8,9};int *p;int i;p=a;printf(%d\n,*p++);printf(%d\n,*++p);程序输出结果为[填空1]和[填空2]。
【简答题】 #includestdio.hint main(){int a[10]={0,1,2,3,4,5,6,7,8,9};int *p;p=a;printf(%d\n,*p);p++;printf(%d\n,*p);}程序输出结果为[填空1]和[填空2]。
【单选题】 若有以下说明,int?a[12]={1,2,3,4,5,6,7,8,9,10,11,12};?则数值为4的表达式是()
①  a[4]
②  a(3)
③  a[3+1]
④  a[4]-a[0]
【单选题】 若有以下数组说明inta[12]={1,4,7,10,2,5,8,11,3,6,9,12};则i=10;a[a[i]]元素数值是( )。
①  10
②  9
③  6
④  5
【单选题】 有以下程序,执行后输出结果是() main( ) { int m[][3]={1,4,7,2,5,8,3,6,9}; int i,j,k=2; for(i=0;i { printf(%d ,m[k][i]); } }
①  4 5 6
②  2 5 8
③  3 6 9
④  7 8 9
【单选题】 以下程序段运行后sum的值为()。intk=0,sum=0;inta[3][4]={1,2,3,4,5,6,7,8,9,10,11,12};for(;kk++)sum+=a[k][k+1];
①  9
②  18
③  19
④  21
【单选题】 设X~B(2,p),Y~B(3,p)若P(X1)=5/9,则P(X1)=
①  19/27
②  1/9
③  1/3
④  1/24
【单选题】 有以下变量说明,下面不正确的赋值语句是() int a=5,b=10,c; int ?p1=&a,?p2=&b;
①  ?p2=b;
②  p1=a;
③  p2=p1;
④  c=?p1?(?p2)。
【单选题】 设A ={1,3,5,7},B = {5, 7, 9,11},则A∪B是()
①  {1,3, 5}
②  {1,3,5,7}
③  {1, 3, 5, 7,9}
④  {1, 3, 5, 7,9, 11}
随机题目
【单选题】 Now we may be able to say ____ between music and noise.
①  that what the difference
②  what the difference is
③  the difference is what
④  what is the difference
【单选题】 Frankly speaking, I’d rather you ____ anything about it for the time being.
①  didn’t do
②  don’t do
③  will not do
④  do
【单选题】 When we breathe, the oxygen in the air ____ with our blood and gives us life.
①  fills
②  goes
③  takes in
④  mixes
【单选题】 The disabled children need many things, but____, they need love.
①  first of all
②  above all
③  after all
④  all in all
【单选题】 Only by shouting at the top of his voice ____.
①  he was able to make himself hear
②  he was able to make himself heard
③  was he able to make himself heard
④  was he able to make himself hear
【单选题】 He won’t____ to bring me my umbrella unless I tell him again.
①  forget
②  remind
③  remember
④  realize
【单选题】 Many people prefer large cars, ___ large cars are safer than small ones.
①  think
②  to think
③  having thought
④  thinking
【单选题】 David watched her car until it ________ from view.
①  remainded
②  dalayed
③  grew
④  disappeared
【单选题】 When I got up this morning, I felt the temperature had ____.
①  sunk
②  reduced
③  dropped
④  lowed
【单选题】 The reason why the car was stopped was ____.
①  that the road was slippery
②  due to the slippery road
③  because the road was slippery
④  because of the slippery road