Since it okpoints to an uninitialized array of characters, all this will be garbage values, therefore, when concatenation begins (through strcat), it is unknown. Also strcataccepts a C string (i.e. an array of characters that ends with the character '\ 0'). Giving char a[200] = ""will give you [0] = '\ 0', then from [1] to [199] set to 0.
: ( )
#include <stdio.h>
#include <string.h>
char *asd(char* in, char *out)
{
strcat(out, in);
return out;
}
int main(){
char st[] = "text";
char ok[200] = "somevalue";
asd(st, ok);
printf("%s", ok);
return 0;
}