#include <stdio.h>
char *strcat_ (char s1[], char s2[]) {
int x = 0, y = 0;
while (s1[x] != '\0') {
x++;
}
while (s2[y] != 0) {
s1[x] = s2 [y];
x++;
y++;
}
s1[x] = '\0';
return s1;
}
main() {
char c;
c = *strcat_("John ", "Trump");
printf ("%s", &c);
}
So there's my code, and when I try to run I get this "Bus error: 10".
I'm really new at this, so please bare that in mind.
Thanks for the help.