#include <iostream>

void foo(int* bar) {
    (*bar)++;
}

int main() {
    int a[3] = {10, 20, 300};
    foo(a);
    std::cout << a[0];
}