I am begining computer science student and I am trying to learn how to create an array of pointers to point to an array of strings. I plan on sorting the pointers later but right now I get a syntax error just trying to assign one string address to one pointer.
Disch, so are you saying that this is dangerous, x[7] = "String Test"; ?? I did compile and run this and it "seemed to work". I am worried that that it works ok now but later it will cause a run time error.
Your code is fine. You're not doing anything wrong.
Using strcpy() to copy a string to a char pointer that doesn't point to anything is not fine -- but this is not what you're doing, so don't worry about it.