#include using namespace std; void increment (int& x) { // increment the variable x x = x+1; cout << "In function, x = " << x << endl; } int main () { int N = 10; increment (N); cout << "N = " << N << endl; return 0; }