==
#include <iostream> using namespace std ; int main(void) { int *p = (int*)1234; //编译没问题,但运行时出错 *p = 190 ; // not writeable system("pause") ; return 0 ; } // output: run time error! access voilation!
==
本文转自zdd博客园博客,原文链接:http://www.cnblogs.com/graphics/archive/2009/07/27/1532092.html,如需转载请自行联系原作者