There is a function which has two pointers as input argument and there are a pointer and a array defined outside of the function. I want to write a function which changes address of the pointer outside of the function to the array.
void func(int8_t *pointer, char* array)
{
pointer = array;
}
int main()
{
int8_t *pX;
char arr[100];
func(pX,arr);
The above code doesn't work because it only changes address of local pointers inside the function not the passed arguments.