Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <conio.h>
- #include <stdio.h>
- void swap (int *x, int *y){
- int z = *x;
- *x = *y;
- *y = z;
- }
- int main()
- {
- int c = 10, b = 15;
- swap(&c, &b);
- printf ("%d %d", c ,b );
- getch();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement