I am trying to create an array of strings in C. If I use this code:
char (*a[2])[14]; a[0]=\"blah\"; a[1]=\"hmm\";
gcc gives me \"warning:
The string literals are const char *s.
const char *
And your use of parenthesis is odd. You probably mean
const char *a[2] = {"blah", "hmm"};
which declares an array of two pointers to constant characters, and initializes them to point at two hardcoded string constants.