What will be the result of executing following code?
function a(&$n) {
  ++$n;
}
function b($n)
{
  return ( a($n) * $n );
}
function c($n){
  a($n);
  return ($n * $n);
}

echo b(5);
echo c(5);

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback