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

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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