πŸ“Š PHP
Q. What will be the output of the following PHP code ?
Code:
<?php
$m = 10; $n = -8; $t = 2; 
$k = ++$m && ++$n || ++$t;
echo $k; 
echo $m;
?>
  • (A) 10
  • (B) -8
  • (C) 111
  • (D) 2
πŸ’¬ Discuss
βœ… Correct Answer: (C) 111

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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