I am trying to pass a pointer to a funcion, and in that function create an array, and set the passed pointer to that array.

What I'm trying to do is create an array inside the function and then use that array outside the funcion.

```
void createArray(int *myPointer)
{
    int intArray[20];

    *myPointer = &intArray[0]; // This line gets error:
                               // assignment makes integer from pointer without a cast [-Wint-conversion]

    for (int i = 0; i < 20; i++)
    {
        intArray[i] = i + 10;
    }
}

int main(void)

{
    int *intPointer;
    createArray(&intPointer);
    for (int i = 0; i < 20; i++)
    {
        printf("%d : %d \n", i, intPointer[i]);
    }
    return 0;
}

```