请问是什么原因??
我这里申请1字节的内存,却能够存那么长的字符串,是为什么呢??#include "stdio.h"
int main()
{
char *reminders[2];
reminders[0] =malloc(1);
reminders[1] =malloc(1);
reminders[0]="abcerrrrrrrrrrrrrrrrrrrrrrrrrrrrr";
reminders[1]="abcdertvtvtvtvtvtvtvtvgertvgrtvvv";
printf("reminders[0]=%s\n",reminders[0]);
printf("reminders[1]=%s\n",reminders[1]);
system("pause");
}
谢谢!!