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