Q. What will be the output of the following Perl code?
Code:$val1 = 5; $val2 = 10; $result = $val1 == $val2 ? $val1 : $val2; print "$result"
β
Correct Answer: (C)
10
$val1 = 5; $val2 = 10; $result = $val1 == $val2 ? $val1 : $val2; print "$result"
You must be Logged in to update hint/solution