#include <stdio.h>
char* ptr(char *string_a, char *string_b)
{
int i = 0, j = 0;
while(string_a[i]!='\0') { ++i; };
while(string_b[j]!='\0')
{
string_a[i]=string_b[j];
j++; i++;
}
string_a[i]='\0';
return string_a;
}
int main (void)
{
char string_a[250];
char string_b[250];
puts(" -- DIGITE UMA PALAVRA -- "); puts(" -- DIGITE UMA PALAVRA -- "); puts(ptr
(string_a
,string_b
)); return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgpjaGFyKiBwdHIoY2hhciAqc3RyaW5nX2EsIGNoYXIgKnN0cmluZ19iKQp7CiAgICBpbnQgaSA9IDAsIGogPSAwOwogICAgd2hpbGUoc3RyaW5nX2FbaV0hPSdcMCcpIHsgKytpOyB9OwogICAgd2hpbGUoc3RyaW5nX2Jbal0hPSdcMCcpIAogICAgewogICAgICAgIHN0cmluZ19hW2ldPXN0cmluZ19iW2pdOwogICAgICAgIGorKzsgaSsrOwogICAgfQogICAgc3RyaW5nX2FbaV09J1wwJzsKICAgIHJldHVybiBzdHJpbmdfYTsKfQppbnQgbWFpbiAodm9pZCkKewogICAgY2hhciBzdHJpbmdfYVsyNTBdOwogICAgY2hhciBzdHJpbmdfYlsyNTBdOwogICAgcHV0cygiIC0tIERJR0lURSBVTUEgUEFMQVZSQSAtLSAiKTsKICAgIGdldHMoc3RyaW5nX2EpOwogICAgcHV0cygiIC0tIERJR0lURSBVTUEgUEFMQVZSQSAtLSAiKTsKICAgIGdldHMoc3RyaW5nX2IpOwogICAgcHV0cyhwdHIoc3RyaW5nX2Esc3RyaW5nX2IpKTsKICAgIHJldHVybiAwOwp9Cg==