I have just started learning how to program and I came across an assignment whereby I have to create an array wherein the weight of the elephant seals is read & printed. Can someone please tell me what's wrong with my code, because I can read in the data but my data is being printed wrong when I call the printArray function.
Below is my code:

```
/* 
compute the weight average of elephant seals using an array that will read in the data 
*/

#include <stdio.h>

void arrayReadingData(const int sizeP) //array to read in the weight of the elephantseals
{

    int weightP[sizeP];
    for(int i = 1; i <= sizeP; i++)
    {
        printf("Elephant seal %d weight is: ", i);
        scanf("%d", &weightP[i]);
    }
}

void printArray(const int sizeP)
{

    int weightP[sizeP];
    for(int i = 1; i <= sizeP; i++)
    {
        printf("%d\t", weightP[i]);
    }
}

int main(void)
{

    int size;
    printf("How many seals do you want to calculate the average weight for: ");
    scanf("%d", &size);

    arrayReadingData(size);
    printArray(size);
};

```