#include <iostream>
using namespace std;

int main() {
    int arr[3] = {1,2,3};
    int &a = arr[1];
    a = 999;

    for (int i = 0; i < 3; i++) {
        cout << arr[i] <<endl;
    }
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: