Check out example codes for "error: invalid conversion from ‘int*’ to ‘int’ [-fpermissive]". It will help you in understanding the concepts better.

Code Example 1

#include<iostream>
using namespace std;

int main()
{
    int a[]={5,6,7,8,10};
    int *p,*q;
    *p=&a[0];
    *q=&a[4];
    
}

Learn ReactJs, React Native from akashmittal.com