← Back to Question List
C++ Quiz #2
Reference vs Copy
What is the output of this code?
📄 Code
1#include <iostream>2using namespace std;34int main() {5 int a = 5;6 int &b = a;7 b = 10;8 cout << a << endl;9 return 0;10}