title: Is it possible to create a struct whose size is not known at compile time?
body: <p>As the question states I am looking to create a struct in C whose total size I do not know at compile time. </p>
  
  <p>For example, I would like to create a struct that contains a count value and an array with count elements. I know this could be implemented as:</p>
  
  <pre><code>typedef struct myStruct{
      int count;
      int *myArray;
  } myStruct;
  </code></pre>
  
  <p>However, I want this struct to take up one solid block of memory so I could use <code>memcpy()</code> on it at a later point in time. Like this:</p>
  
  <pre><code>typedef struct myStruct{
      int count;
      int myArray[count];
  } myStruct;
  </code></pre>