思考3 int a[] 和int *a数组传参

int a[] 每次都可以传4*n个字节的数组长度的形参。可以知道数组的长度,len = sizeof(a)/sizeof(int)
 
int *a,每次只要传4个字节长度的变量,不知道数组的长度,需要单独传参或控制。

猜你喜欢

转载自www.cnblogs.com/epll/p/11397556.html
int