I need help with creating a 1-dimensional array using the length that the user entered it. I need to use a scanf_s as this is part of the assignment. I know this is something to do with pointers but I'm still new and unfamiliar on how to use them. Thanks for the help!
int main(void)
{
unsigned int N;
printf("%s", "Please enter a positive integer: ");
scanf_s("%d", &N);
int array[N];
}
I'm getting an error at int array[N];