#include <stdio.h>
#include <string.h>
int main(void) {
int i = 0;
char str[] = "testString";
for(i = 0; i < len/2; i++){
str[len - i - 1] ^= str[i];
str[i] ^= str[len - i - 1];
str[len - i - 1] ^= str[i];
}
printf("Reverse String %s \n", str
);
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdHJpbmcuaD4KCgppbnQgbWFpbih2b2lkKSB7CiAgICBpbnQgaSA9IDA7CiAgICBjaGFyIHN0cltdID0gInRlc3RTdHJpbmciOwogICAgaW50IGxlbiA9IHN0cmxlbihzdHIpOwogCiAgICBmb3IoaSA9IDA7IGkgPCBsZW4vMjsgaSsrKXsKICAgIAlzdHJbbGVuIC0gaSAtIDFdIF49IHN0cltpXTsKICAgIAlzdHJbaV0gXj0gc3RyW2xlbiAtIGkgLSAxXTsKICAgIAlzdHJbbGVuIC0gaSAtIDFdIF49IHN0cltpXTsKICAgIH0KCiAgICBwcmludGYoIlJldmVyc2UgU3RyaW5nICVzIFxuIiwgc3RyKTsKIAoJcmV0dXJuIDA7Cn0K