#include <stdio.h>
void InverterString(char *str1){
for (int c=0; c<5; c++) aux[c] = str1[4 - c];
printf("A string1 invertida fica: %s", aux
); }
int main(void) {
InverterString("abcde");
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+Cgp2b2lkIEludmVydGVyU3RyaW5nKGNoYXIgKnN0cjEpewogICAgY2hhciBhdXhbc3RybGVuKHN0cjEpXTsgICAKCiAgICBmb3IgKGludCBjPTA7IGM8NTsgYysrKSBhdXhbY10gPSBzdHIxWzQgLSBjXTsKCiAgICBwcmludGYoIkEgc3RyaW5nMSBpbnZlcnRpZGEgZmljYTogJXMiLCBhdXgpOwp9CgppbnQgbWFpbih2b2lkKSB7CiAgICBJbnZlcnRlclN0cmluZygiYWJjZGUiKTsKICAgIHJldHVybiAwOwp9Cg==