int x = 10; int &ref = x; // Defines ref as a reference to x ref = 100; // Changes the value of x to 100