-1
#include <stdio.h>
void concatenar (char str1, char str2){
int c, a;
for(c=0; str1[c]!='0'; c++)
for(a=0; str2[a]!='0'; a++){
str1[c]=str2[a];
}
return str1;
}
int main (void){
char str1[10], str2[10];
printf("Digite uma palavra: ");
gets (str1);
printf("Outra palavara: ");
gets(str2);
printf(void ("%s", str1));
puts(concatenar(str1, str2));
return 0;
}
Welcome to Sopt Camilla! try, in addition to posting the code, specify the problem you are having. take a look at this topic and understand how to create a minimum, complete and verifiable example.
– H.Lima