I've been working in C lately and I've started working with arrays recently. Can you help me identify what's causing the issue here? I'm fairly certain the function inputArray is, but I cannot figure out why.
#include <stdio.h>
void inputArray(int array[], int size);
int main() {
int arraySize;
printf("Enter size of array: \n");
scanf("%d", &arraySize);
int myArray[arraySize];
inputArray(myArray[arraySize], arraySize);
return 0;
}
void inputArray(int array[], int size){
int i;
for (i=0; i<size; i++){
printf("Enter value for array: \n");
scanf("%d", array[i]);
}
}