C++20 sections · 1024 units
Open in CourseQuiz: Pass by Reference
Function parameter behavior
Check Your Understanding
What does this print? void swap(int& a, int& b) { int t = a; a = b; b = t; } int x = 5, y = 10; swap(x, y); cout << x;
- A.5
- B.0
- C.10
- D.Compiler error