设有定义:float a=2,b=4,h=3;,以下C语言表达式与代数式 计算结果不相
符的是( )
A)(a+b)*h/2 B)(1/2)*(a+b)*h C)(a+b)*h*1/2 D)h/2*(a+b)
能正确表示逻辑关系:"X≥10或X≤0"的C语言表达式是
A.X>=10 or X<=0 B.X>=0|X<=
读下面的程序:
#include
void main()
{static int a[]={1,2,3,4,5};
int *p=a;
printf("%d,",*++p);
printf("%d,",*p++);
}写出运行的结果、
有以下程序
#include
main()
{ int a,b,c=246; a=c/100%9; b=(-1)&&(-1);
printf("%d,%d\n",a,b); }
输出结果是
A. 2,1 B. 3,
把x、y定义成float类型变量,并赋同一初值3.14的是( )
A> float x, y=3.14; B> float x, y=2*3.14;
C> float x=3.14, y=x=3.14; D> float x=y=3.14;