What will be the result of following code?
$operation = "+";
$a = 66;
$b = 13;

switch ($operation) {
    default : $c = 0;
    case "+": $c = $a + $b;
    case "-": $c = $a - $b;
}
echo $c; 
Explanation
Get an explanation when it's available:

why?

2018 Jul 10, 5:15:44 AM

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Keep exploring
PHP quizzes
Cosmo
Sign Up Now
or Subscribe for future quizzes