I was trying to find out the reason why arrays have static size in C, and so far I know that dynamic allocation can impact how long it takes for code to execute. Also, I know that another reason would be that its size needed to be fixed at compile time, but here comes the problem: What happens when I have something like
int n;
scanf("%d", &n);
int arr[n];
What's the difference if my array size were a static value, just like
int arr[3];