- 字符串
char 变量名[数量];
2.变量名[索引号]=字符;
3.
#include<stdio.h>
int main()
{
//char a[4]={'I','l','y','\0'};
//char a[]={'I','l','y','\0'};
char a[]="Ily";//字符串常量
printf("%s\n",a);
printf("hello\n");
return 0;
}
2.变量名[索引号]=字符;
3.
#include<stdio.h>
int main()
{
//char a[4]={'I','l','y','\0'};
//char a[]={'I','l','y','\0'};
char a[]="Ily";//字符串常量
printf("%s\n",a);
printf("hello\n");
return 0;
}