#include <stdio.h>
void
fun(int *x)
{
int b=6666;
x=&b;
printf("xxxxxxxxxxxxxxxxx%p\n",x);
printf("xxxxxxxxxxxxxxxxx%d\n",*x);
}
/*int *fun3()
{
int v=6666;
int *x=&v;
printf("xxxxxxxxxxxxxxxxx%p\n",x);
printf("xxxxxxxxxxxxxxxxx%d\n",*x);
return x;
}*/
int main()
{
int *p=NULL;
printf("原p存放地址:%p\n",p);
fun(p);
if(p==NULL)
printf("NO DATA!\n");
else
{
printf("后p存放地址:%p\n",p);
printf("%d\n",*p);
}
return 0;
}