#include <stdio.h>
#include <string.h>
char *troca(char nome[100]) {
for (int i
= 0, j
= strlen(nome
) - 1; i
< j
; i
++, j
--) { char temp = nome[i];
nome[i] = nome[j];
nome[j] = temp;
}
return nome;
}
int main(void) {
char nome[100];
printf("Informe o nome para ser invertida :"); }
//https://pt.stackoverflow.com/q/265266/101
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdHJpbmcuaD4KCmNoYXIgKnRyb2NhKGNoYXIgbm9tZVsxMDBdKSB7CiAgICBmb3IgKGludCBpID0gMCwgaiA9IHN0cmxlbihub21lKSAtIDE7IGkgPCBqOyBpKyssIGotLSkgewogICAgCWNoYXIgdGVtcCA9IG5vbWVbaV07CiAgICAJbm9tZVtpXSA9IG5vbWVbal07CiAgICAJbm9tZVtqXSA9IHRlbXA7CiAgICB9CiAgICByZXR1cm4gbm9tZTsKfQogIAppbnQgbWFpbih2b2lkKSB7CiAgIGNoYXIgbm9tZVsxMDBdOwogICBwcmludGYoIkluZm9ybWUgbyBub21lIHBhcmEgc2VyIGludmVydGlkYSA6Iik7CiAgIHNjYW5mKCIlW15cbl1zIiwgbm9tZSk7CiAgIHByaW50ZigiJXNcbiIsIHRyb2NhKG5vbWUpKTsKfQoKLy9odHRwczovL3B0LnN0YWNrb3ZlcmZsb3cuY29tL3EvMjY1MjY2LzEwMQ==