为什么这个代码在 visual stdio2013 能编译但无法运行
#include<stdio.h>#include<string.h>
#define MAXSTRING 100
int main(void)
{
char c = 'a', *p, s[MAXSTRING];
p = &c;
printf("%c%c%c", *p, *p + 1, *p + 2);
strcpy_s(s, "ABC");
printf("%s %c%c%s\n", s, *s + 6, *s + 7, *s + 1);
strcpy_s(s, "she sells sea sheels by the seashore");
p = s + 14;
for (; *p != '\0'; ++p){
if (*p == 'e')
*p = 'f';
if (*p == ' ')
*p = '\n';
}
printf("%s\n", s);
return 0;
}