看看下面会有什么效果?void main(void)
{
char message1[] = {'H','e','l','l','o',0};
char message2[] = "Hello";
char *message3 = "Hello";
message1[0] = 'h';
printf("%s \n",message1);
message2[0] = 'h';
printf("%s \n",message2);
message3[0] = 'h';
printf("%s \n",message3);
}
|