#include <stdio.h>
void swapnum(int *i, int *j) {
int temp = *i;
*i = *j;
*j = temp;
}
int main(void) {
int a = 10;
int b = 20;
int * c = &a;
swapnum(&c, &b);
printf("A is %d and B is %d\n", a, b);
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+Cgp2b2lkIHN3YXBudW0oaW50ICppLCBpbnQgKmopIHsKICBpbnQgdGVtcCA9ICppOwogICppID0gKmo7CiAgKmogPSB0ZW1wOwp9CgppbnQgbWFpbih2b2lkKSB7CiAgaW50IGEgPSAxMDsKICBpbnQgYiA9IDIwOwogIGludCAqIGMgPSAmYTsJIAogIHN3YXBudW0oJmMsICZiKTsKICBwcmludGYoIkEgaXMgJWQgYW5kIEIgaXMgJWRcbiIsIGEsIGIpOwogIHJldHVybiAwOwp9Cg==