title: error: variable-sized object may not be initialized| (C language)
body: <p>I am a beginner of programming so I am not familiar to errors yet.</p>
  
  <pre><code>int integer=1;
  struct myStruct **str1[integer] = malloc(sizeof(struct myStruct *));
  </code></pre>
  
  <p>I have this code segment, and I get following error:</p>
  
  <pre><code>error: variable-sized object may not be initialized|
  </code></pre>
  
  <p>I figured out the problem is causing from the variable 'integer' as when I delete it, I don't face this error. But I can't understand why I am seeing it because I already initialized 'integer' variable. Also, I already initialized "myStruct" structure and initializing str1 right here. </p>
  
  <p>Can someone help me?</p>