#include <iostream>
void f(int* a){
a[0] += 5;
}
int main() {
int a[1];
a[0] = 10;
f(a);
std::cout<< a[0] << std::endl; // 15
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKdm9pZCBmKGludCogYSl7CiAgIGFbMF0gKz0gNTsKfQppbnQgbWFpbigpIHsKICAgaW50IGFbMV07CiAgIGFbMF0gPSAxMDsKICAgZihhKTsKICAgc3RkOjpjb3V0PDwgYVswXSA8PCBzdGQ6OmVuZGw7ICAvLyAxNQogICByZXR1cm4gMDsKfQ==