|
|
int pass(int *b[],const int n)
int b[]
or as a pointer as int *b
. int *b.
there is error in line 20.You can't create or pass an array of references. |
int res=pass(&arr,num);
int res=pass(arr,num);
arr
is a pointer to the first element of the array.