摘要: 1、指针作为参数传递进去的仅仅只是指针的值,而不是指针的地址,或者说只是指针的一份拷贝,例如:void pointer(int *p){ int a = 11; printf("\nthe p is %p , addr is %d, *p is %d",p , &p, *p); *p =11; printf("\nthe p is %p , addr is %d, *p is %d",p , &p, *p); p = &a; printf("\nthe p is %p , addr is %d, *p is %d&quo 阅读全文
posted @ 2012-10-26 10:40 lipeil 阅读(17454) 评论(1) 推荐(1) 编辑