#include <stdio.h>
#include <string.h>
int main(void) {
char buffer[] = "Hello";
for(int i = 0; i < size / 2; i++) {
char tmp = buffer[i]; //armazena o character inicial
buffer[i] = buffer[size - i - 1]; //Troca o character da ponta oposta
buffer[size - i - 1] = tmp; //Armazena o character inicial no buffer
}
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdHJpbmcuaD4KCmludCBtYWluKHZvaWQpIHsKCWNoYXIgYnVmZmVyW10gPSAiSGVsbG8iOwoJc2l6ZV90IHNpemUgPSBzdHJsZW4oYnVmZmVyKTsKCWZvcihpbnQgaSA9IDA7IGkgPCBzaXplIC8gMjsgaSsrKSB7CgkgICBjaGFyIHRtcCA9IGJ1ZmZlcltpXTsgLy9hcm1hemVuYSBvIGNoYXJhY3RlciBpbmljaWFsCgkgICBidWZmZXJbaV0gPSBidWZmZXJbc2l6ZSAtIGkgLSAxXTsgLy9Ucm9jYSBvIGNoYXJhY3RlciBkYSBwb250YSBvcG9zdGEKCSAgIGJ1ZmZlcltzaXplIC0gaSAtIDFdID0gdG1wOyAvL0FybWF6ZW5hIG8gY2hhcmFjdGVyIGluaWNpYWwgbm8gYnVmZmVyCgl9CglwcmludGYoIiVzIiwgYnVmZmVyKTsKCXJldHVybiAwOwp9Cg==