Skip to content

Latest commit

 

History

History
24 lines (21 loc) · 457 Bytes

0072.md

File metadata and controls

24 lines (21 loc) · 457 Bytes

What will be the output of the following code snippet?

$a = 1;
$b = 2;
$c = 0xAF;
$d = $b + $c;
$e = $d * $b;
$f = ($d + $e) % $a;
print($f + $e);
  • A) 354
  • B) 200
  • C) 0
  • D) The script will throw an error message
Answer

Answer: A