#include"iostream"
using namespace std;
int main()
{
float f = 34.5;
int *p = reinterpret_cast<int *>(&f);
cout << "fload adress" << &f << "==>>" << f << endl;
cout << "int adress" << p << "==>>" << *p << endl;
*p = 100;
cout << "int " << *p << endl;
cout << "flaot" << f << endl;
system("pause");
return 0;
}
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请
点击举报。