void fun(int* array){} int main(){ int array[]={1,2,3}; fun(&array);----->(1)//error in this line return 0; }
error: cannot convert â
Arrays naturally decays to pointers when passed around. You don't have to use the address-of operator.