I need to create an array that's size is determined by user input, and then has pointers to said array. All the array will hold is random numbers between 500-600. I can't seem to use malloc correctly. I am still new to C, so help is appreciated.
int main(){
int size;
printf("Enter size of array");
scanf("%d", &size);
int array[size];
int *aPtr = (int *) malloc(sizeof(int) * array);