Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- void doSomething( int x )
- {
- x = 42;
- printf( "The answer to Life, the Universe and Everything is (always): %i!n", x );
- }
- int main( int argc, char **argv )
- {
- int a = 0;
- doSomething( a );
- return -a;
- }
- void f( int n ) {
- n++;
- }
- void g() {
- int n = 0;
- n++;
- }
- void doSomething( int& x ) {
- x = 42;
- printf( "The answer to Life, the Universe and Everything is (always): %i!n", x );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement