#include<iostream>
#include<string.h>
using namespace std;
class A
{
public:
int a;
int b;
};
int main()
{
A *(*p)=0;
int a[10]={1,2,3,4,5,6,7,8,9,10};
int z=(int )&a;
int *x=reinterpret_cast<int *>(z);
//int *x=reinterpret_cast<int *>(100);//直接操作地址的值
//*x=4;
/*int y=5;
x=&y;*/
cout<<&x<<endl;
#include<string.h>
using namespace std;
class A
{
public:
int a;
int b;
};
int main()
{
A *(*p)=0;
int a[10]={1,2,3,4,5,6,7,8,9,10};
int z=(int )&a;
int *x=reinterpret_cast<int *>(z);
//int *x=reinterpret_cast<int *>(100);//直接操作地址的值
//*x=4;
/*int y=5;
x=&y;*/
cout<<&x<<endl;