#include using namespace std; void func1(int a) { a = 5; } void func2(int & a) { a = 5; } int main() { int x = 1; cout << x << endl; func1(x); cout << x << endl; func2(x); cout << x << endl; return 0; }