Advertisement
Guest User

Untitled

a guest
May 25th, 2016
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.23 KB | None | 0 0
  1. #include <conio.h>
  2. #include <stdio.h>
  3.  
  4. void swap (int *x, int *y){
  5.      int z = *x;
  6.      *x = *y;
  7.      *y = z;
  8. }
  9.  
  10. int main()
  11. {
  12.     int c = 10, b = 15;
  13.     swap(&c, &b);
  14.     printf ("%d %d", c ,b );
  15.     getch();
  16. return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement