Code:
int main(int argc, char* argv[])
{
	char *test = "Hello there how is everyone";
	

	char * pch;
	char * array[10]; 

	int x = 0;

	pch = strtok(test, " ");

	while (pch)
	{
		array[x] = pch;
		pch = strtok(NULL," ");

		x++;
	}


	Test(array);

	return 0;
}

void Test(char * argv[])
{
	printf("%s\n", argv[0]); //Hello
	printf("%s\n", argv[3]); //is
}
it compiles fine but it just crashes the exe when i run it. says:
text.exe has encountered a problem and needs to close