SHARE
TWEET

Untitled

a guest May 19th, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. void change(int *var1, int *var2) //deklaracja funkcji
  5. {
  6.     int temp;
  7.     temp = *var1;
  8.     *var1 = *var2;
  9.     *var2 = temp;
  10. }
  11.  
  12. int main()
  13. {
  14.     int liczba1, liczba2;
  15.     scanf("%d %d", &liczba1, &liczba2);
  16.     change(&liczba1,&liczba2); // wywolanie funkcji
  17.     return 0;
  18. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top