Code: C++
char* concat(char *s1, const char *s2)
{
char *t;
while(*s1!='\0')
{
*t = *s1;
s1++;
t++;
}
while(*s2!='\0')
{
*t = *s2;
s2++;
t++;
}
*t = '\0';
return t;
}
Could you kindly tell me what should be done to prevent that and display the correct value string ?

