Plaster
New
List
Login
common-lisp
default
anonymous
2021.04.29 11:00:16
┌─[phoe][helix][/tmp] └─▪ cat foo.cpp #include <iostream> void foo(int& thing) { thing = 24; } int main() { int x = 42; foo(x); std::cout << x << std::endl; } ┌─[phoe][helix][/tmp] └─▪ g++ -o foo foo.cpp ┌─[phoe][helix][/tmp] └─▪ ./foo 24
Raw
Annotate
Repaste
Edit