#include #include void foo(int* const x, int& y, int z) { *x += 1; y *= 2; z -= 3; } int main(int argc, char** argv) { int a = 1; int b = 2, c = 3; foo(&a, b, c); std::cout << "(" << a << ", " << b << ", " << c << ")" << std::endl; return EXIT_SUCCESS; }