Question: What will be the output of the following code? $Rent = 250 Function Expenses($Other) { $Rent = 250 + $Other; Return $Rent; } Expenses(50); Echo $Rent;
A
B
C
D
300
B
250
C
200
D
Program will not compile
Note: Not available
<?php
function vec_add (&$a, $b)
{
$a['x'] += $b['x'];
$a['y'] += $b['y'];
$a['z'] += $b['z'];
}
$a = array ('x' => 3, 'y' => 2, 'z' => 5);
$b = array ('x' =>9, 'y' => 3, 'z' => -7);
vec_add ($a, $b);
print_r ($a);
?>