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

PHP
PHP Quiz
Start Quiz

or Read more about PHP Quiz

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback