If you want to create an array of strings, you will be missing an asterisk and trailing zeros:
char str1[] = {'f','i','\0'}; char str2[] = {'s','e','\0'}; char str3[] = {'t','h','\0'}; char *arry_of_string[] = {str1,str2,str3};
There is an easier way to make separate lines:
char str1[] = "fi"; char str2[] = "se"; char str3[] = "th"; char *arry_of_string[] = {str1,str2,str3};
When you use the char x[] = "..." construct, the contents of your string literal (including the zero end) are copied to memory, which you can write, creating the same effect as the char x[] = {'.', '.', ... '\0'} construct char x[] = {'.', '.', ... '\0'} .
source share