填空题

设Y是int型变量,请写出判断Y为奇数的关系表达式 【6】 。

【参考答案】

Y%2=1 或 Y%2!=0
<上一题 目录 下一题>
热门 试题

填空题
下列程序的输出结果是 【9】 。 main() int a[]=2,4,6,*ptr=&a[0],x=8,y,z; for(y=0;y<3;y++) z=(*(ptr+y)<x)*(ptr+y):x; print f( %d n ,z);
填空题
以下程序的输出是 【7】 。 main() char str1[]= How do you do ,*pl=str1; strcpy(str1+strlen(str1) 2, es she ); intf( %s n ,p1);
相关试题
  • 若有定义语句char s[100],d[100...
  • 以下程序段打开文件后,先利用fseek函数将...
  • 下面的程序可对指定字符串进行从大到小排序...
  • 若有如下结构体说明: struct STRU int...
  • 以下程序输出的最后一个值是 【8】 。 ...