选择题 38.  有如下程序:
    #include<iostream>
    using namespace std;
    ini main()
    {
        int*p;
        *p=9;
        cout<< "The value at p:"<<*p;
        return 0;
    }
    编译运行程序将出现的情况是______。
【正确答案】 D
【答案解析】 本题考查指针的使用。在给*p赋值前,指针p并没有指向一个具体的对象。此时可以通过编译,但运行时由于p中为随机值,该赋值可能会破坏内存中某个重要的地址空间的内容,导致程序出错。