字符串能赋值?
#include <stdio.h>#include <string.h>
void delay(double time);
int main(void)
{
char s[10]='sasdf';
printf(" %d\n",sizeof(s));
printf(" %d\n",strlen(s));
getch();
return 0;
}
为什么这么赋值字符串是错误的
2018-01-04 11:02
2018-01-04 11:04
谢谢
2018-01-04 11:12
2018-01-04 11:20