title: error C2131: expression did not evaluate to a constant while creating array of structure
body: <p>i am trying to create array of structure. 
  Method i was using for creating array of structure which was working fine in Linux and Mac but this is throwing error in windows </p>
  
  <pre><code>uint32_t size;
  Test TestArray[size];
  TestArray[i] = Test;
  //i
  </code></pre>
  
  <p>Error I am getting in windows</p>
  
  <pre><code>error C2131: expression did not evaluate to a constant 
  </code></pre>
  
  <p>I have also tried </p>
  
  <pre><code>typedef struct Test {
      char *x;
      char *y;
  } Test;
  
  uint32_t size;
  status = napi_get_array_length(env,args[2],&amp;size);
  assert(status == napi_ok);
  
  struct Test  testList[size];
  napi_value SharePrefixObject;
  for(uint32_t i=0;i&lt;size;i++){
  Test t;
  testList[i]= t;
  </code></pre>
  
  <p>Question
  How can resolve above error ?</p>