【单选题】【消耗次数: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}
随机题目
【判断题】 根据语素在词中的作用,一般把词尾叫做变词语素。
①  正确
②  错误
【判断题】 由两个语素构成的词肯定是复合词。
①  正确
②  错误
【单选题】 下列词组没有歧义的一组是?
①  A. 热爱人民的科学家
②  B. 咬死了猎人的猎狗
③  C. 两个朋友送的皮带
④  D. 几个客人送的花瓶
【单选题】 从组合关系看,与其它三类都不相同的句子是?
①  A. 小王跑得快。
②  B. 小张跳得高。
③  C. 小于觉得累。
④  D. 小刘打得好
【单选题】 英语动词的词形变化形式比较丰富,例如动词be,有?种变化形式。
①  A. 8
②  B. 6
③  C. 4
④  D. 5
【单选题】 区分词类的最重要的依据是?
①  A、意义;
②  B、形态变化;
③  C、句法功能;
④  D、语言的类型特点。
【单选题】 Can you go out with us for dinner this evening?
①  No, I already have plans
②  Thanks a lot but I’m busy tonight
③  No, I really don’t like being with you
④  I’m ill, so I shouldn’t go out for dinner
【单选题】 To _________ their new shampoo, they are selling it at half price for a month.
①  progress
②  proceed
③  promote
④  propose
【单选题】 I don’t want to talk about it now. I’m not in the __________ .
①  feeling
②  attitude
③  emotion
④  mood
【单选题】 Can I help you with the bag?
①  No, no. I can take it myself
②  Thank you
③  Sorry, you can’t
④  No, I’m all right