C中*、&用法介绍
摘要:
C中*、&用法介绍例1、#include int find(int *a);main(){ int b = 1; int wait, test; test = find(&b); printf("内存地址为:%d",&test); scanf("%d", &wait);}int find(int *a){ return *a;}int b = 1; int test = find(&b); 这样调用时,实际上是进行了:int* a = &b,创建了一个新的指向b的整型指针a作为find函数范围内的局部变量。 阅读全文
posted @ 2013-06-26 15:31 google_yep 阅读(14365) 评论(0) 推荐(0) 编辑