【单选题】【消耗次数:1】
若有定义:unionu_type{intx;floaty[3];charz;}a;则变量a的长度是()。
1
4
12
15
参考答案:
复制
纠错
相关题目
【单选题】 若有定义:structdata{chara;floatb[3];longc;}d1;则变量d1的长度是()。
①  15
②  12
③  4
④  17
【单选题】 若有定义:intx,a;赋值语句a=(x%3==0)?0:1;与()语句不等价。
①  if(x%3!=0)a=1;elsea=0;
②  if(x%3)a=0;elsea=1;
③  if(x%3==0)a=0;elsea=1;
④  if(!(x%3==0))a=1;elsea=0;
【单选题】 若有定义:intx=10,y=8,a;则执行语句a=((--x==y)?x:y);后,变量a的值是()。
①  8
②  9
③  10
④  0
【单选题】 若有定义:inta[3][4];则表达式a[2][1]-a的值为()。
①  7
②  8
③  9
④  10
【单选题】 若有定义:int a[3][4];则表达式&a[2][1]-a的值为()。
①  7
②  8
③  9
④  10
【单选题】 若有定义:int a[][3]={1,2,3,4,5,6,7,8};,则a数组的行数为()
①  无确定值
②  3
③  2
④  1
【单选题】 若有以下说明,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]
【单选题】 若有定义:int a[3][4],则对数组a 元素的正确引用是()。
①  a[2][4]
②  a[1,3]
③  a[2][3]
④  a[3][1]
【单选题】 已有定义:intx=3,y=4,z=5;则表达式!(xy)z-1&&yz/2的值是()
①  6
②  0
③  2
④  1
【单选题】 若已定义:intx=7;floaty=7.0;以下语句中能输出正确值的是()。
①  printf("%d%d",x,y);
②  printf("%d%.3f",x,y);
③  printf("%.3f%.3f",x,y);
④  printf("%.3f%d",x,y);
随机题目
【简答题】 Translate the following sentence into English.我刚到家电话就响了。
【简答题】 Translate the following sentence into Chinese.3. He came first in the race.
【简答题】 Direction: Fill in the blanks with thephrases given below. Change the form if necessary.[set off; after all; attach to; burst into laughter; lean against; teach...a lesson; take off; come to sense; give in to]5. Her humorous story made me[填空1]sometimes.
【简答题】 Direction: Fill in the blanks with thephrases given below. Change the form if necessary.[sell out; in other words; consist of; stand for; rely on; demand for; engage in; at hand; yield to; confront with]5. He came to realize that he had nobody to[填空1]but himself.
【简答题】 Directions: Fill in the blanks with the phrases given below. Change the form if necessary.[comprise of; vote for; access to; wake up; be hooked to; in the long run; work at; to ones joy; pay off; be associated with]2. The assignments for the course[填空1]computer-aided design problems.
【简答题】 Direction: Fill in the blanks with the phrases given below. Change the form if necessary.[have access to; go off; desperate for; put up with; always the case; give advice; concentrate on; arrive at; make an effort; come in handy]9. But in reality this is not[填空1].
【简答题】 Direction: Fill in the blanks with the words given below. Change the form if necessary.[expand; abuse; knowledge; narrative; plantation; property; oppressive; extremely; rebel; abolitionist]9.All[填空1]originates from labour.
【简答题】 组装一部台式电脑,需要的部件有哪些?
【简答题】 存储元件的发展经过了电子管、[填空1]、集成电路和大规模集成电路4个阶段。
【简答题】 域名管理系统的缩写是[填空1]。