单项选择题

以下选项中,当X为大于l的奇数时,值为0的表达式是【 】。

A.x%2=1
B.x/2
C.x%2!=0
D.x%2=0
<上一题 目录 下一题>
热门 试题

单项选择题
有一函数,以下程序段中不能根据x值正确计算出y值的是( )。
A.if(x>0)y=1;   else if(x= =0)y=0;      else y=-1;
B.y=0;   if(x>0)y=1;  else if(x<0)y=-1;
C.y = 0;  if (x> = 0)     if (x>0) y = 1;  else y = -1;
D.if ( x > = 0)    if ( x>0)y = 1;   else y = 0;   else y = -1;
单项选择题
有以下说明和定义语句:struct student{ int age; char num[8];};struct student stu[3]={{20, 200401 },{21, 200402 },{10 9, 200403 }};struct student *p=stu;以下选项中引用结构体变量成员的表达式错误的是( )。
A.(p++)->num
B.p->num
C.(*p).num
D.stu[3].age
相关试题
  • 以下程序中sort( )函数的功能是对a所指...
  • 有以下程序:void swap1(int c[ ])...
  • 以下程序中函数reverse( )的功能是将a所...
  • 下列叙述中正确的是【 】。
  • 有以下程序:main( ){ int a=15,...