Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 21st, 2012  |  syntax: None  |  size: 0.22 KB  |  hits: 8  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. void fun1 (int &a);
  5. void fun2 (int a);
  6.  
  7. int main()
  8. {
  9. int liczba = 3;
  10. fun1(liczba);
  11. cout<<liczba;
  12. }
  13.  
  14. void fun1(int &a)
  15. {
  16. a = a * 2;
  17. }
  18. void fun2(int a)
  19. {
  20. a = a * 2;
  21. }