SHARE
TWEET

Untitled

a guest May 19th, 2019 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <stdbool.h>
  4. #include <time.h>
  5.  
  6.  
  7. void change(int *var1, int *var2){
  8.     int temp;
  9.     temp = *var1;
  10.     *var1 = *var2;
  11.     *var2 = temp;
  12. }
  13. int main(){
  14.     int *var1, *var2;
  15.     scanf("%d", var1);
  16.     scanf("%d", var2);
  17.    
  18.     change(var1, var2);
  19.    
  20.     printf("%d, %d", var1, var2);
  21.    
  22.     return 0;
  23. }
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