形参和实参理解 数组指针的两个例子
摘要:
1/*基本类型指针_1*/2#include<stdio.h>34intmain(void)5{6int*p;//等价于int*p;也等价于int*p;7inti=5;8charch='A';910p=&i;//*p以p的内容为地址的变量11//p=&ch;//error类型不一致12//p=ch;//error13*p=99;14printf("i=%d,*p=%d\n",i,*p);15 1617return0;18}19/*在Vc++6.0中显示的结果是:20================================= 阅读全文
posted @ 2012-09-03 22:54 Your Song 阅读(283) 评论(0) 推荐(0) 编辑