上课没太听懂求帮助.
你这里主要是学习函数传递参数:具体比较数组的大小不重要
int max(int a,int b){}//传递数组元素 调用 max(a[2],b[2]);
int max(int a[6],int b[6]){} // 传递数组 调用 max(a,b);
int max(int a,int b){}//传递数组元素 调用 max(a[2],b[2]);
int max(int a[6],int b[6]){} // 传递数组 调用 max(a,b);
温馨提示:答案为网友推荐,仅供参考
第1个回答 2015-04-30
哪一部分没有听懂呢,需要代码吗?