Hi,
here is my question I have this in my .h file
static const char *Title[];
How do I initialize the array in my .C file the array to lets say "first", "second", "third"
Hi,
here is my question I have this in my .h file
static const char *Title[];
How do I initialize the array in my .C file the array to lets say "first", "second", "third"
static const char* Title[] = { "first", "second", "third" };
Check out this little blurb on initialization. Why do you want to do it in separate files? You'll have to do externs.
// in .h
extern const char* Title[];
// in .c
const char* Title[] = { "first", "second" };