PHP 位运算符
<?php$a=10;$b=20;$c=4;$d=8;$e=1.0;$f=$c+$d*2;$g=$f%20;$h=$b-$a+$c+2;$i=$h<<$c;$j=$i*$...
<?php
$a = 10;
$b = 20;
$c = 4;
$d = 8;
$e = 1.0;
$f = $c + $d * 2;
$g = $f % 20;
$h = $b - $a + $c + 2;
$i = $h << $c;
$j = $i * $e;
print $j;
?>
A.128
B.42
C.242.0
D.256
E.342
我算的是D,但我算的$i=0,所以后面是0,求原因 展开
$a = 10;
$b = 20;
$c = 4;
$d = 8;
$e = 1.0;
$f = $c + $d * 2;
$g = $f % 20;
$h = $b - $a + $c + 2;
$i = $h << $c;
$j = $i * $e;
print $j;
?>
A.128
B.42
C.242.0
D.256
E.342
我算的是D,但我算的$i=0,所以后面是0,求原因 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询