[求助]关于sizeof的问题
											大家好:
       有个问题想问一下,源代码如下:
#include<iostream>
using namespace std;
void main()
{
    int *pt=new int;
    *pt=1001;
    
    double *pd=new double;
    *pd=10000001.0;
    
    cout<<"size of pt= "<<sizeof(pt)<<endl;
    cout<<"size of pd= "<<sizeof(pd)<<endl;
}
运行结果如下:
size of pt=4
size of pd=4
想问一下,为什么pd=4,它是double类型,为什么不是8.



											
	    

	
