Q. What will be the output of the following PHP code ?
Code:
<?php $p = 6; $q = -8; $r = 2; $s = ++$p && ++$q || ++$r; echo $s; echo $p; ?>
β
Correct Answer: (A)
17
<?php $p = 6; $q = -8; $r = 2; $s = ++$p && ++$q || ++$r; echo $s; echo $p; ?>
You must be Logged in to update hint/solution