Skip to content

Latest commit

History

History
25 lines (21 loc) 路 406 Bytes

File metadata and controls

25 lines (21 loc) 路 406 Bytes

What is the output of the following?

function a($number) {
    return (b($number) * $number);
}
function b(&$number) {
    return ++$number;
}
echo a(5);
  • A) 36
  • B) 30
  • C) 25
  • D) 26
Answer

Answer: A