【单选题】【消耗次数:1】
若有定义:int a[5],*p=a;则不能正确表示数组元素a[i]的是()。
*(a+i)
*(p+i)
p[i]
*p[i]
参考答案:
复制
纠错
相关题目
【判断题】 如p是指针变量,a为数组名,p=a,则可采用*(p+i)的方法引用数组元素。
①  正确
②  错误
【单选题】 若有说明:int i,j =7,*p =&i,*q=&j;则与i =j;不等价的语句是()。
①  p =q
②  *p =*q
③  *i =*q
④  *p =*j
【单选题】 以下程序的运行结果是()。main(){inta[3]={1,2,3};int*num[3];int**p,i;for(i=0;ii++)num[i]=p=num;printf("%d",**p);}
①  1
②  3
③  a[0]
④  num
【单选题】 若有说明语句“int a[5],*p=a;”,则对数组元素的正确引用是()。
①  a[p]
②  p[a]
③  *(p+2)
④  p+2
【单选题】 若有定义int i=1;则执行完循环while(i++〈5);以后i 的值为()
①  6
②  5
③  4
④  7
【单选题】 若有定义:int a[10],*p=a;则错误引用数组元素a[2]地址的是()。
①  p+2
②  a+2
③  p[2]
④  *a+2
【单选题】 关于以下JavaScript代码,说法正确的是( )。 var s = document.getElementsByTagName(p); for(var i = 0;i<s.length;i++) { s[i].style.display=none; }
①  隐藏了页面中所有id为p的对象
②  隐藏了页面中所有name为p的对象
③  隐藏了页面中所有标签为的对象
④  隐藏了页面中标签为的第一个对象
【单选题】 若有说明语句 int a[10],*p=a;对数组元素正确的引用是
①  a[p]
②  p[a]
③  *(p+1)
④  p+2
【简答题】 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]。
【单选题】 若有定义:int*p,k=4;p=以下均代表地址的是()。
①  k,p
②  k,p
③  k,p
④  k,*p
随机题目
【多选题】 根据《公司法》的规定,有限责任公司的出资方式可以是
①  货币
②  房屋使用权
③  实物
④  知识产权
【单选题】 下列有关合伙企业出资不合法的是:()
①  普通合伙人甲的一辆汽车的使用权
②  普通合伙人乙的专利权没有评估作价,且约定了乙仍然在原有范围内继续使用该专利
③  有限合伙人出资的专利权没有评估作价
④  普通合伙人李某(犯贪污罪服刑完毕未满1年者)的劳务
【多选题】 The new device was _____________ the telephone.
①  pulled
②  decided
③  called
④  named
【单选题】 The medical officer was praised (表扬) for _______________ the life of a child.
①  saving
②  checking
③  discussing
④  weeping
【单选题】 Goats are being hired to do the work of people near San Diego. The fires that occurred in Hillborbough four years ago destroyed thirty homes, most of which have been rebuilt. While people were rebuilding the homes, the grasses and bushes were growing back. The area is now so overgrown in bushes that there is again a major danger of fire.The city government put up bids to remove the bushes. The lowest bid they received was $50,000—and that was if the city provided breakfast and lunch for the workers for the six weeks it would take to clear the overgrown area. The city only wanted to give unlimited coffee and a piece of bread a day for each person. When that offer was rejected, the city asked for help on its website.A sheepherder in Montanta and a goat-keeper in San Bernardino read about the city’s plight(困境)while surfing the Web. They both offered to do the job for $25,000. The city government chose the goat-keeper because he lived closer. When he was told that the city dump(垃圾场)was overflowing , the goat-keeper said, “No problem. My goats will eat everything in your dump, except the car engines, of course.” So, for another $5,000, the city killed two birds with one stone. If all goes well, they will invite the goat-keeper and his “family” back every three years. The goat-keeper said that he would probably visit San Diego while his goats were in the dump.Why was the goat-keeper chosen to remove the bushes?
①  Because he offered to do it for the lower price.
②  Because it was easier to transport his goats.
③  Because his goats can do the job better.
④  Because the city wanted to raise more goats.
【单选题】 The president has an ____________ secretary.
①  extensive
②  efficient
③  effective
④  expensive
【判断题】 When we got down to the job we met many difficulties.划线部分应该翻译成“着手做”
①  正确
②  错误
【单选题】 A ___________ asks people for money or food .
①  worker
②  soldier
③  beggar
④  doctor
【判断题】 歌手演唱他人享有著作权的作品进行商业演出应征得著作权人的同意。
①  正确
②  错误
【判断题】 “红豆”商标因在34类商品.8类服务上都取得了注册,使其成为一种联合商标。
①  正确
②  错误