Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- void swap( int a2, int d2)
- {
- int v;
- v = a2;
- a2 = d2;
- d2 = v;
- }
- //////////////////////////////////////////////////////
- int main()
- {
- int a = 4,
- d = 10;
- swap(a, d);
- printf(" a = %d \n", a);
- printf(" d = %d \n", d);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement