I'm trying to create a simple array of 10 C strings and display them. I've attached the code below.
gcc gives me a warning:
warning: passing argument 2 of 'strcpy' from incompatible pointer type
at the line using strcpy.
As soon as this program is ran, I get a seg fault. It seg faults around the strcpy() line, not even getting to displaying it. So I'm not sure where it is wrong. I must be short a pointer somewhere or whatever?
gcc gives me a warning:
warning: passing argument 2 of 'strcpy' from incompatible pointer type
at the line using strcpy.
As soon as this program is ran, I get a seg fault. It seg faults around the strcpy() line, not even getting to displaying it. So I'm not sure where it is wrong. I must be short a pointer somewhere or whatever?