I used to do the following to declare and initialize an array of string in C:
char *myTable[] = {
"ABC", "Y", "*", "*",
"WXYZ", "Y", "*", "*",
"MNO", "Y", "*", "*",
NULL, NULL,NULL, NULL
};
The NULL's are for internal use.
Since I moved to gcc 4.4.6, I get a warning:
abc.cpp:74: warning: deprecated conversion from string constant to ‘char*’
What is the correct way of initializing my array ?