==

#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!

==

相关文章: