69,382
社区成员
发帖
与我相关
我的任务
分享
#include <stdio.h>
#include <stdlib.h>
int main(void)
{
char *s1;
char *s2; /*所有的变量定义都放到语句块的最前面*/
s1 = "abc";
printf("the s1 = %s.\r\n",s1);
printf("the s2 = %s.\r\n",s2);
return 0;
}
#include <stdio.h>
#include <stdlib.h>
int main(void)
{
char *s1= "abc";
/*s1 = "abc"; */
char *s2;
printf("the s1 = %s.\r\n",s1);
printf("the s2 = %s.\r\n",s2);
return 0;
}