-2
I don’t know how to print the strcat
on the screen, I don’t know how to concatenate to the position typed in the scanf_s
.
int main() {
char string1[10], string2[10];
int RU[1];
char NomeSobrenome;
printf("digite o Nome\n");
gets_s(string1);
printf("Digite o segundo nome\n");
gets_s(string2);
printf("Digite o ultimo digito do RU");
scanf_s("%d", &RU[1]);
strncat(string1, string2,RU[1]);
NomeSobrenome = strncat;
printf("%c", NomeSobrenome);
}
What exactly is the question? What data do you enter and what should the result be? Or it’s not even compiling, if it’s not what error you don’t understand (put the message in this case)?
– Mateus -- O Schroeder