这段程序为什么会崩溃
程序代码:#include <iostream>
using namespace std;
int main()
{
int *p;
char c = 'x';
p = (int *)&c;
*p = 100;
printf("%d", *p);
return 0;
}
程序代码:#include <iostream>
using namespace std;
int main()
{
int *p;
char c = 'x';
p = (int *)&c;
*p = 100;
printf("%d", *p);
return 0;
}
2009-10-25 19:35
2009-10-25 20:26
2009-10-25 20:33
2009-10-25 20:56

2009-10-25 21:29
2009-10-25 21:40
2009-10-25 22:43
2009-10-27 15:53
2009-10-27 23:08

2009-10-27 23:14