【单选题】【消耗次数:1】
假定一个函数的参数说明为const int a,则在函数体中执行( )操作非法。
printf(“%d”,a)
a==0
int x=a
a=10
参考答案:
复制
纠错
相关题目
【单选题】 假定一个函数的参数说明为const int a,则在函数体中执行( )操作非法。
①  printf(“%d”,a)
②  a==0
③  int x=a
④  a=10
【单选题】 假定一个函数的参数说明为const int* a,则在函数体中执行( )操作非法。
①  printf(“%d”,*a)
②  a==NULL
③  *a=20
④  a=NULL
【单选题】 假定一个函数的参数说明为const int* a,则在函数体中执行( )操作非法。
①  printf(“%d”,*a)
②  a==NULL
③  *a=20
④  a=NULL
【单选题】 在函数定义的参数表中,也可以使用函数参数,假定一个函数参数说明为int ff(int),则等价的函数指针说明为( )。
①  int *ff(int)
②  int ff
③  int *ff
④  int (*ff)(int)
【单选题】 在函数定义的参数表中,也可以使用函数参数,假定一个函数参数说明为int ff(int),则等价的函数指针说明为( )。
①  int *ff(int)
②  int ff
③  int *ff
④  int (*ff)(int)
【单选题】 假定一个函数的数组参数说明为char a[],则与之等价的指针参数说明为( )。
①  char
②  char* a
③  char a
④  char** a
【单选题】 假定一个函数的数组参数说明为char a[],则与之等价的指针参数说明为( )。
①  char
②  char* a
③  char& a
④  char** a
【单选题】 假定一个函数的二维数组参数说明为char w[][N],则与之等价的指针参数说明为( )。
①  char(*w)[N]
②  char *w [N]
③  char(*w) N
④  char** a
【单选题】 假定一个函数的二维数组参数说明为char w[][N],则与之等价的指针参数说明为( )。
①  char(*w)[N]
②  char *w [N]
③  char(*w) N
④  char** a
【单选题】 假定一个类的构造函数为“A(int i=4, int j=0) {a=i;b=j;}”, 则执行“A x (1);”语句后,x.a和x.b的值分别为()
①  1和0
②  1和4
③  4和0
④  4和1
随机题目
【单选题】 下列CSS规则中能够让图层div隐藏的选项是( )。
①  div{visibility:none;}
②  div{ visibility: visible;}
③  div{visibility:hidden;}
④  div{visibility:block;}
【单选题】 在 HTML5 中,onblur 和 onfocus 是( )
①  HTML 元素
②  样式属性
③  事件属性
④  点击事件
【单选题】 下列选择器,能够设置鼠标悬停状态下的样式的是( )
①  :hover
②  :active
③  :focus
④  :link
【单选题】 下列CSS规则中能够使超链接在盘旋时产生上画线效果的选项是( )。
①  a:hover{text-decoration:none;}
②  a:hover{text-decoration:underline;}
③  a:hover{text-decoration:line-through;}
④  a:hover{text-decoration:overline;}
【单选题】 下列选项中能够实现两个图层div同时向右浮动的是( )。
①  div{float:right;}
②  div{float:none;}
③  div{float:left;}
④  div{clear:both;}
【单选题】 能够保存localStorage对象数据的方法是( )。
①  localStorage.setItem(key,value)
②  localStorage.getItem(key)
③  localStorage.removeItem(key)
④  localStorage.key(index)
【单选题】 在设置线性渐变时至少需要指定( )次颜色停止。
①  2
②  3
③  4
④  1
【单选题】 HTML5 Canvas对象的默认宽度为300px,默认高度是( )
①  200px
②  300px
③  400px
④  500px
【单选题】 下列选项中为行内标记的是( )。
①  p /p
②  div /div
③  span /span
④  pre /pre
【单选题】 使用Canvas绘制圆形的方法是( )。
①  beginPath()
②  arc(x,y,100,开始角度,结束角度,绘制方向)
③  closePath()
④  A. B,C三个方法依次执行