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