一个强制转换问题

#include <iostream> using namespace std; int main() { int* p=NULL; int x; double y; y=1; x=(int)y; p=(int*)&y; cout<<*p<<endl; cout<<p<<endl; cout<<&y<<endl; cout<<"x="<<x<<endl; system("pause"); return 0; }这个代码运行结果*P怎么是0不是1??p明明已经指向y了