void fun2(int *p)
{
p = 0xaabb;
printf("fun2:p = %p\n", p);
}
void fun3(int **p)
{
*p = 0xeeff;
}
int main(void)
{
int *p = 0x1122;
printf("p1 = %p\n", p);
fun2(p); //值传递
printf("p2 = %p\n", p);
fun3(&p); //地址传递
printf("p2 = %p\n", p);
printf("\n");
system("pause");
return 0;
}