πŸ“Š PHP
Q. what is the output of below program?
Code:
<?php
$a=0;
$b=0;

for($i=0;$i<10;$i++)
{
      if(++$a<5 && $b++<7){  }
}
echo $a." ".$b;
?>
  • (A) 6 4
  • (B) 4 10
  • (C) 10 4
  • (D) 10 10
πŸ’¬ Discuss
βœ… Correct Answer: (C) 10 4

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
91954
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
91%
Success Rate