πŸ“Š PHP
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;
?>
  • (A) 17
  • (B) 6
  • (C) -8
  • (D) 2
πŸ’¬ Discuss
βœ… Correct Answer: (A) 17

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
116363
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Admin
Publisher
πŸ“ˆ
83%
Success Rate