【单选题】【消耗次数:1】
在定义int a[5];之后,对a的引用正确的是()。
a[5]
a[4.3]
a(5)
a[0]
参考答案:
复制
纠错
相关题目
【单选题】 若有说明语句“int a[5],*p=a;”,则对数组元素的正确引用是()。
①  a[p]
②  p[a]
③  *(p+2)
④  p+2
【单选题】 有定义语句“int a[][3]={1, 2, 3, 4, 5, 6};”,则a[1][0]的值是____。
①  4
②  1
③  2
④  5
【单选题】 对于int *pa[5];的描述,正确的是()
①  pa是一个指向数组的指针,所指向的数组是5个int型元素
②  pa是一个指向某个数组中第5个元素的指针,该元素是int型变量
③  pa[5]表示某个数组的第5个元素的值
④  pa是一个具有5个元素的指针数组,每个元素是一个int型指针
【单选题】 对于int*pa[5];的描述中,正确的是()
①  pa是一个指向数组的指针,所指向的数组是5个int型元素
②  pa是一个指向某数组中第5个元素的指针,该元素是int型变量
③  pa[5]表示数组的第5个元素的值,是int型的值
④  pa是一个具有5个元素的指针数组,每个元素是一个int型指针
【单选题】 若有定义:int a[5],*p=a;则不能正确表示数组元素a[i]的是()。
①  *(a+i)
②  *(p+i)
③  p[i]
④  *p[i]
【判断题】 数组a的定义:int a[5][3]={{1,3},{5},{5,6,8}};则该数组共有6个元素。
①  正确
②  错误
【单选题】 下面代码:int a[5];int *p;a[0]=1;a[1]=2;p=a;*p的值
①  a
②  1
③  2
④  null
【单选题】 若已定义inta=5;下面对(1)int*p=&a;(2)*p=a;两个语句的正确解释是()
①  语句(1)和(2)中的*P含义相同,都表示给指针变量p赋值
②  语句(1)和语句(2)的执行结果,都是把变量a的地址值赋给指针变量p
③  语句(1)在对p进行说明的同时进行初始化,使p指向a,语句(2)将变量a的值赋给指针变量p
④  语句(1)在对p进行说明的同时进行初始化,使p指向a,语句(2)将变量a的值赋于*p
【单选题】 循环for(int i=0,x=0;!x&&i<=5;i++);的循环体执行次数是()
①  5
②  6
③  1
④  无限
【单选题】 若有定义:int a[2][4];,则引用数组元素正确的是()
①  a[0][3]
②  a[0][4]
③  a[2][2]
④  a[2][2+1]
随机题目
【判断题】 Oct. 1, 2009 can also be written as 10/1/2009.
①  正确
②  错误
【判断题】 The inside address refers to the addressees address.
①  正确
②  错误
【判断题】 There is no need of the hour or minute in a note.
①  正确
②  错误
【判断题】 Notes usually need a good introduction.
①  正确
②  错误
【判断题】 In precis writing, try to avoid repetition.
①  正确
②  错误
【判断题】 In precis writing, you need to make a list of all the important points and group them under diffferent items.
①  正确
②  错误
【判断题】 An effective precis is based on precise and thorough reading and understanding of the article.
①  正确
②  错误
【判断题】 The wording of notes always remain the same regardless of the relationship betwee the addresser and the addressee.
①  正确
②  错误
【判断题】 In an English letter, the complimentary close like yours, or Yours Sincerely is put below the signature.
①  正确
②  错误
【判断题】 Compared with letters, notes are generally of high informality in diction and format as well.
①  正确
②  错误