C strcpy = Unhandled exception: Access violation writing location 0x00000000
问题 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] = "ABCDEFGH\0"; char * array_of_pointers[20]; // now I want to copy string to the first available slot; strcpy(array_of_pointers[0],string); Then strcpy throws me error: Unhandled exception: Access violation writing location 0x00000000. Why? I know that this problem is probably simple, but I really don't have a clue. 回答1: The target