Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <math.h>
- #include <string.h>
- void swapp(char *p, char *q)
- {
- int swa;
- swa = *p;
- *p = *q;
- *q = swa;
- }
- int main()
- {
- char ch1[10];
- char ch2[10];
- int num1 , num2;
- scanf("%d %d", &num1, &num2);
- //printf("%d %d\n", num1, num2);
- swapp(&num1, &num2);
- printf("%d %d\n", num1, num2);
- return 0;
- }
Add Comment
Please, Sign In to add comment