摘要: /*经典的数的互换*/# include <stdio.h>//在这个函数当中,因为主函数a, b 和函数huhuan当中的形参是两个不同的地址,在这个里面只能改变一个函数的内容,不能实现//改两个函数的内容;void huhuan(int a, int b){ int t; t = a; a = b; a = t; }//这个函数的只能改变*p 和*q当中的值,在这个函数当中只能改变这个*p 和*q的值,所以也不能实现这个a, b 的内容改写;//void huhuan_1(int *p, int *q){ int *t; t = p; q... 阅读全文
posted @ 2012-03-13 16:22 BarneyX 阅读(278) 评论(0) 推荐(0) 编辑