πŸ“Š PHP
Q. What will be the output of the following PHP code ?
Code:
<?php
$p = 2;
while ((--$p > ++$p) - 2)
{   
    print $p;
}
?>
  • (A) 0000000000........infinite time
  • (B) 2222222.........infinite time
  • (C) -2-2-2-2-2-2-2-2.......infinite time
  • (D) All of above
πŸ’¬ Discuss
βœ… Correct Answer: (B) 2222222.........infinite time

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
95394
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Yami Thakur
Publisher
πŸ“ˆ
85%
Success Rate