Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- void swap(int* a, int* b){
- int temp = *a;
- *a = *b;
- *b = temp;
- }
- int main(){
- int a = 20;
- int b = 30;
- swap(&a,&b);
- printf("%d\n", a);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement