ExamVeda
Login
Home
This question belongs to PHP Functions
Functions
?

What will be the output of the following PHP code ?
<?php
function calc($num1, $num2)
{
    $total = $num1 * $num2;
    return $total; 
}
$result = calc(42, 0);
echo $result;    
?>

Answer & Solution
Correct Answer: Option B
Function returns $total.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.