#include void f(int & ref) { ref = 456; } int main() { int i { 123 }; f(i); std::cout << i << std::endl; }