I'm writing a program and I've faced an issue where I cannot set the array size to the user's liking. I know it's a pointer-related issue.
#include <stdio.h>
int main() {
int length;
scanf_s("%d", &length);
int array[length]; //"expression must have a constant value"
}