Pass by Value void pass_by_value(int i) { i = 4; } int main() { int j = 1; pass_by_value(j); std::cout << j << std::endl; // outputs 1, not 4 }