title: Error: Variable-sized object may not be initialized. I don't get why
body: <p>i was trying to do this exercise code in initialization of arrays and i keep getting the error that's stated in the title. Researching online I've seen that defining &quot;SIZE&quot; as constant should do the job but it's not working for me. The thing is I've copied this code from my professor and it ran fine for him. Can you help me?</p>
  <p>Thanks</p>
  <pre><code>#include &lt;stdio.h&gt;
  
  int main(void) {
      const int SIZE = 5; 
      
      int grades[SIZE] = {78, 67, 92, 83, 88};
      double sum;
      int i;
      
  [...]
  
      }
  </code></pre>