c之将数组传进函数中的方法

时间:2015-01-30 16:09:40   收藏:0   阅读:196

【方法】

        将数组的首地址和数组的长度传入函数中

【例如】

       函数声明

       void traversal(int  *array ,int    n);

       函数调用

       traversal (array,n);

【遍历实例】

技术分享

【求最值实例】

技术分享

技术分享

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!