I believe that size of the array should be a constant int when you declare it. However, I compiled the following code and it did not get any error. Could you explain about this?
#include <stdio.h>
void function(int);
int main(void){
int m = 0;
scanf("%d", &m);
function(m);
return 0;
}
void function(int i){
int array[i];
}
input: 5 output: nothing. but got no error.