trying to copy pointer in array.
lets say *pointer has the value "COMPUTER". and i want to store in array[o];
note: i want to use strcat to do this and i do not want to do some thing like "array[0]"
char test[10];
char *point; //has the value "COMPUTER"
for(int i = 0; i < 10; i++)
{
test[i] = '\0';
}
strcat(test, point); //store value at end of test array. so test[0] is computer
for(int i = 0; i < 10; i++)
{
printf("%s",test[i]);
}
not sure why this dont work;