πŸ“Š PHP
Q. What will be the output?
Code:
$a = 1;
$b = &$a;
$c = &$b;
$c = 5;
echo $a;
  • (A) 1
  • (B) 5
  • (C) Error
  • (D) NULL
πŸ’¬ Discuss
βœ… Correct Answer: (B) 5

Explanation: All variables reference same value.

Explanation by: Roshan
All variables reference same value.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
2
Total Visits
πŸ“½οΈ
8 d ago
Published
πŸŽ–οΈ
Roshan
Publisher
πŸ“ˆ
95%
Success Rate