我想创建一个字符串数组。这是代码:
#include <stdio.h>
int main(void){
char str1[] = {'f','i'};
char str2[] = {'s','e'};
char str3[] = {'t','h'};
char arry_of_string[] = {str1,str2,str3};
printf("%s\n",arry_of_string[1]);
return 0;
}
这是行不通的行:
char arry_of_string[] = {str1,str2,str3};
我该如何纠正?