C语言,如果我要定义一个函数,要给数组用,书上写int b(int a[]),我写int b(int m)可以吗
不可以,int a[] 表示函数的形参是数组,int m 函数的形参是一个变量 m ,可以写成:int b(int m[]) 或 int b(int *m) ,指针作为形参。