-
What will be the output of the following PHP code ?
<?php
$n = 128;
switch($n)
{
case "n":
print "Welcome to";
break;
case 128:
print "Interview";
break;
default:
print "Mania";
}
?>
-
- Mania
- Error
- Interview
- Welcome to
- None of these
Correct Option: C
Downcasting does not happen in case,it compares only with its data type.