char *wordArray = newchar;
char *wordArray = newchar; // You tried re-declaring the pointer WordArray
1 2 3 4
while{true} // this line should not compile though !, it should be while(true)
{ // start a new scope, so this declaration hides the one in main scope
char *wordArray = newchar;
}