invalid conversion from int* to int [-fpermissive] return arr; code example
Example: error: invalid conversion from ‘int*’ to ‘int’ [-fpermissive]
#include<iostream>
using namespace std;
int main()
{
int a[]={5,6,7,8,10};
int *p,*q;
*p=&a[0];
*q=&a[4];
}