按照c程序设计语言书上的代码在电脑上运行是段错误,这是怎么回事
#include<stdio.h>void strcat(char *, char *);
int main(void)
{
char *s = "I love";
char *t = " you";
strcat(s, t);
printf("%s\n", s);
rerurn 0;
}
void strcat(char *s, char *t)
{
while(*s)
s++;
while(*s++ = *t++)
;
}