已知X = 0x9C, Y = 0x5E, 计算: ~X = 0x ~Y = 0x X & (~Y) = 0x X | Y = 0x (~X) ^ Y = 0x
举一反三
- intx=2,y=2;printf("%d\n", (x=0)&&(y=3));printf("x=%d y=%d\n ",x,y);输出结果是( )。? 1x=2;;y=2|0x=0;;y=2|0x=0;;y=3|1x=0;;y=2
- p>有一函数[br][/br] ┌1x>0[br][/br]y=┤0x=0[br][/br] └-1x<0[br][/br]以下程序段中不能根据x的值正确计算出y的值的是______。</p A: p>if(x>0)y=1;elseif(x==0)y=0;elsey=-1; B: y=0;if(x>0)y=1;elseif(x<0)y=-1; C: y=0;if(x>=0)if(x>0)y=1;elsey=-1; D: if(x>=0)if(x>0)y=1;elsey=0;elsey=-1;
- 【单选题】与“y=(x>0?x:x<0?-x:0);”的功能相同的if语句是______。 A. if(x>0) y=x; else if(x<0) y=-x; else y=0; B. if(x) if(x>0) y=x; else if(x<0) y=-x; else y=0; C. y=-x; if(x) if(x>0) y=x; else if(x==0) y=0; else y=-x; D. y=0; if(x>=0) if(x>0) y=x; else y=-x;
- 求解常微分方程初值问题[img=224x61]1803072f6b2a05a.png[/img]应用的语句是 A: DSolve[2y[x]y"[x]==1+(y'[x])^2,y[0]==1,y'[0]==0,y[x],x B: DSolve[{2y[x]y" [x]==1+(y'[x])^2,y[0]==1,y'[0]==0},y[x],x] C: DSolve[{2y[x]y" [x]==1+(y^' [x])^2;y[0]==1;y'[0]==0},y[x],x] D: DSolve[{2yy"==1+(y^' )^2&&y[0]==1&&y'[0]==0},y[x],x]
- 表达式!(x>0||y>0)等价于( ) A: !x>0||!y>0 B: !(x>0)||!(y>0) C: !(x>0)&&!(y>0) D: !x>0&&!y>0