#include<stdio.h>
void swap(char **str1, char **str2)
{
char **temp = str1;
str1 = str2;
str2 = temp;
}
int main()
{
char *str1 = "Gate";
char *str2 = "Overflow";
swap(&str1, &str2);
printf("str1 is %s, str2 is %s", str1
, str2
); return 0;
}
I2luY2x1ZGU8c3RkaW8uaD4Kdm9pZCBzd2FwKGNoYXIgKipzdHIxLCBjaGFyICoqc3RyMikKewpjaGFyICoqdGVtcCA9IHN0cjE7CnN0cjEgPSBzdHIyOwpzdHIyID0gdGVtcDsKfQppbnQgbWFpbigpCnsKY2hhciAqc3RyMSA9ICJHYXRlIjsKY2hhciAqc3RyMiA9ICJPdmVyZmxvdyI7CnN3YXAoJnN0cjEsICZzdHIyKTsKcHJpbnRmKCJzdHIxIGlzICVzLCBzdHIyIGlzICVzIiwgc3RyMSwgc3RyMik7CnJldHVybiAwOwp9