Please help me i can't solve this question i've got in university. I asked in our university forum and they said this clue: "what is the difference if you send a long string to strcat, or you send the string B? "
Explain what is wrong with the next program:
#include <string.h>
#include <stdio.h>
int main()
{
char A[10];
char B[20];
strcpy(A, "A student");
strcpy(B, "fail the exam");
printf("%s\n", strcat(A, B));
return 0;
}