I have a problem with strcpy function. Using C. Main point of this simple code (below) is copying a string from a array to the array of pointers.
char string[20]
You need to initialize array_of_pointers :
array_of_pointers[0] = malloc(strlen(string)+1);
Or best:
array_of_pointers[0] = strdup(string);