int main(){
int sample_rate = 50;
int t_max = 60*5 ;
int dimensions = 3;
int num_samples = sample_rate * t_max;
double data[dimensions][num_samples] = { { } }; //Error here
return 0;
}
I understand that the size of an array on the heap must be known during compile time which it is here (3 x 15000). Why am I still getting the error?
intvariables asconst int.I understand that the size of an array on the heap must be known during compile timeThis array is on the stack.constexpr