current position:Home>What does it mean that a parameter cannot be converted from int [] to int

What does it mean that a parameter cannot be converted from int [] to int

2022-02-02 20:07:52 CSDN Q & A

Defines a function , Now I want to quote it , There is an array in the formal parameter , I don't know how to quote
Defined subfunction
void del(int a[],int *pos,int n)
Then I want to call... In the main function , This is what I wrote
del(a,pos,n)




Refer to the answer 1:

void del(int a[],int *pos,int n)
..
main()

int a[];
int *p;
int n;
del(a,pos,n)




Refer to the answer 2:

copyright notice
author[CSDN Q & A],Please bring the original link to reprint, thank you.
https://en.primo.wiki/2022/02/202202022007500502.html

Random recommended