#include
#define M 5
#define N 3
void main()
{
int i,j;
char c[M][N]={'H','e','l','l','o',' ','c','!'};//定义数组
for(i=0;ifor(j=0;j printf("%c",c[i][j]);
printf("\n");
}
str[3][20]={"hello","world","hello world"}
3代表有三个字符串,20代表每个字符串的最大长度,/0不用加,是字符串的话自己会加上去的
最好定义一个指针字符数组,不浪费内存
char *str[]={"hello","helloworld"};
char *str={"hello","helloworld"};
char str[30][30]={"hello","hello world"};