当前位置: 技术问答>linux和unix
for循环中为什么在第8次循环会出现“memory fault coredumpe”的错误??
来源: 互联网 发布时间:2015-04-11
本文导语: void main(int argc, char* argv[]) { char s[6]; char* test = s; char mid_s[17]; char* mid = mid_s; char* buf = "12345678901"; char space[6]; char* s_five_mid = space; for( i_loop = 0; i_loop
void main(int argc, char* argv[])
{
char s[6];
char* test = s;
char mid_s[17];
char* mid = mid_s;
char* buf = "12345678901";
char space[6];
char* s_five_mid = space;
for( i_loop = 0; i_loop
{
char s[6];
char* test = s;
char mid_s[17];
char* mid = mid_s;
char* buf = "12345678901";
char space[6];
char* s_five_mid = space;
for( i_loop = 0; i_loop