πŸ“Š PHP
Q. What will be the output of the following PHP code ?
Code:
<?php
$p = 3; 
$q = 4;
$r = $p++ + ++$q;
echo $r;
?>
  • (A) Error
  • (B) 8
  • (C) 3
  • (D) 4
πŸ’¬ Discuss
βœ… Correct Answer: (B) 8

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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