【单选题】【消耗次数:1】
对于如下说明,语法和语义都正确的赋值是()int c,*s,a[]={1,3,5};
c=*s;
s[0]=a[0];
s=a[1];
c=a;
参考答案:
复制
纠错
➡️如需代学继续教育,联系微信:yizhituziang

相关题目
【简答题】 下面程序段的运行结果是[填空1]。char c[5]={a,b,\0,c,\0};printf(%s,c);
【单选题】 1. 对下面程序段描述正确的是int x=0,s=0; while (x!=0) s=s+x+1;printf(%d
①  运行程序段后输出0
②  运行程序段后输出1
③  程序段中的控制表达式是非法的
④  程序段循环无数次
【单选题】 以下程序段运行后s的值是()。 int a[3][3]={1, 2, 3, 4, 5, 1, 2, 3, 4} ; int i, j, s=1; for(i=0; i for(j=i+1; j s+=a[i][j];
①  6
②  120
③  7
④  240
【单选题】 若有变量说明:chars,s1[20];执行语句:s=student;s1=s;正确的叙述是:()。
①  二个语句都不正确
②  s所指向的字符串和s1的值都是student
③  第一个语句正确,而第二个语句不正确
④  第二个语句正确,而第一个语句不正确
【单选题】 <img src=https://huaweicloudobs.ahjxjy.cn/444B1C18FE08CD38C91C2691A001CCDB.png title=0YS5~MBU[DIODT0U82S46HI.png alt=0YS5~MBU[DIODT0U82S46HI.png/>
①  2
②  -2
③  0
④  1
【单选题】 有如下程序段: int a = b = 5; String s1 = 祝你今天考出好成绩!; String s2 = s1; 则表达式a == b与s2 == s1的结果分别是:( )。
①  true与true
②  false与true
③  true与false
④  false与false
【单选题】 以下程序段运行后s的值是()。inta[3][3]={1,2,3,4,5,1,2,3,4};inti,j,s=1;for(i=0;ii++)for(j=i+1;jj++)s+=a[i][j];
①  6
②  120
③  7
④  240
【单选题】 以下程序的输出结果是_______? f(int b[],int m,int n) { int i,s=0; for(i=m;in;i=i+2) s=s+b[i]; return s; } int main() { int x,a[]={1,2,3,4,5,6,7,8,9}; x=f(a,3,7); printf(%d\n,x); }
①  7
②  8
③  9
④  10
【简答题】 以下程序的运行结果是[填空1]。 #include stdio.hvoid main(){int i=1,s=0;do{s+=i++;if (s%7==0)continue;else++i;} while (sprintf(%d\n}
【单选题】 以下程序段的运行结果是()。charstr[3][2]={a,b,c,\0,e,f};printf("%s",str[0]);
①  a
②  abcef
③  abc\0ef
④  abc
随机题目
【单选题】 有如下JavaScript代码,运行后页面文档背景色为蓝色,要实现该效果,横向处应填写( )。script language=JavaScriptfunction change( ){ document.______=blue}/scriptbody onload=change( )/body(选择一项)
①  bgColor
②  backgroud
③  color
④  background-color
【单选题】 在javascript浏览器对象模型中,window对象的( )属性用来指定浏览器状态栏中显示的临时消息。(选择一项)
①  status
②  screen
③  history
④  document
【单选题】 以下选项中,( )可以打开一个无状态栏,无工具栏、有滚动条的页面。(选择一项)
①  window.open(adv.html
②  window.open(adv.html,广告,toolbar=0,scrollbar=0,status=1)
③  window.open(adv.html,广告,toolbar=1,scrollbar=1,status=0)
④  window.open(adv.html,广告,toolbar=0,scrollbar=1,status=0)
【单选题】 下面( )不是document对象的方法。(选择一项)
①  getElementsByName( )
②  getElementById( )
③  write( )
④  reload( )
【单选题】 有如下JavaScript代码: .... script language=JavaScript var x = true; document.write(x); /script .....页面运行后,输出( )。(选择一项)
①  1
②  0
③  true
④ 
【单选题】 下面( )不是document对象的方法。(选择一项)
①  getElementsByTagName( )
②  getElementById( )
③  write( )
④  reload( )
【单选题】 下面选项中()能获得焦点。(选择一项)
①  blur( )
②  select( )
③  focus( )
④  onfocus( )
【单选题】 下列关于Date对象的getMonth( )方法的返回值描述,正确的是( )。(选择一项)
①  返回系统时间的当前月
②  返回值的范围介于1~12之间
③  返回系统时间的当前月+1
④  返回值的范围介于0~11之间
【单选题】 以下属于location对象的方法,使用它可以实现页面重新加载的是:()(选择一项)
①  host
②  hostname
③  reload
④  replace
【多选题】 在JavaScript中,下列代码可以实现弹出的窗口不可调节尺寸的是()(选择二项)
①  window.open(test.html,弹出窗口,resizable=no
②  window.open(test.html,弹出窗口,resizable=yes
③  window.open(test.html,弹出窗口,resizable=1
④  window.open(test.html,弹出窗口,resizable=0