Cout problem when it has to do with large double array


I found that when I write the code like this

void test(){
   double abc[200000000];

there is nothing can be printed in the terminal, and i don’t konw why it could happen. if I write code like

  double abc[200000000];

all seem well. Does anyone know the reason? And thanks for the answer.

Best wishes,
Ze hui

double *abc = new double[200000000];
// ...
delete [] abc; // when no longer needed

Thanks for the reply, it does work. But I still don’t understand how the

void test()

works here.