【发布时间】:2014-04-25 07:20:49
【问题描述】:
我开始了解将一维数组传递给函数的两种方法。
void bubbleSort(int *arr, int len); //Here I am passing arr as a pointer to the array.
void bubbleSort(int arr[], int len); //Here I am not sure.. but arr is a const pointer.
两个函数的调用是一样的,那么这两个函数定义有什么区别和好处呢?
【问题讨论】: