Advertisement
Guest User

Untitled

a guest
Mar 1st, 2017
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. void doSomething( int x )
  4. {
  5. x = 42;
  6. printf( "The answer to Life, the Universe and Everything is (always): %i!n", x );
  7. }
  8.  
  9. int main( int argc, char **argv )
  10. {
  11. int a = 0;
  12. doSomething( a );
  13. return -a;
  14. }
  15.  
  16. void f( int n ) {
  17. n++;
  18. }
  19.  
  20. void g() {
  21. int n = 0;
  22. n++;
  23. }
  24.  
  25. void doSomething( int& x ) {
  26. x = 42;
  27. printf( "The answer to Life, the Universe and Everything is (always): %i!n", x );
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement