void foo(int i){ i = 100;} int main(){ int value = 0; foo(value); printf("%d\n", value);}
Standard input is empty
0
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!