Advertisement
Guest User

Untitled

a guest
Nov 13th, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.23 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4. void zmiana (int &c, int &d)
  5. {
  6.     int liczba;
  7.     liczba=c;
  8.     c=d;
  9.     d=liczba;
  10. }
  11.  
  12. int main()
  13. {
  14.    int a=1;
  15.    int b=2;
  16.    int *wsk;
  17.    zmiana(a, b);
  18.    cout<<a<<" " <<b<<endl;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement