← All tasks
🌳
Programming Intermediate

Pass by Value vs Pass by Reference

⏱ 3 min ⭐ 70 XP 🔁 3 attempts allowed

What you'll do

Pick the correct outcome for a function parameter passed by reference.

Scenario

function addOne(&$n) { $n++; } is called as addOne($count); afterward $count is checked.

Ready to try it?

Create a free account and try "Pass by Value vs Pass by Reference" free for 7 days, no card required. Earn 70 XP and track your internship progress.

Already have an account? Sign in