1234567891011121314151617
#include <iostream> using namespace std; int function(int& x, int y) { x = x+y; y++; return x+y; } int main() { int x = 5, y(10); cout << function(x,y) << endl << x << endl << y << endl; return 0; }
12
cout << function(x,y) << endl ; cout << x << endl << y << endl ;
function()