8f1093f
1 2 3 4 5 6 7 8 9 10 11 12 13
#include <iostream> void incr(int &y) { y = y+1; } int main() { int x = 5; std::cout << "x = " << x << std::endl; incr(x); std::cout << "x = " << x << std::endl; }