title: Sharing a struct with a pointer between two processes using `shm_open()`
body: <p>I have the following struct,</p>
  
  <pre><code>typedef struct arrays {
      int *array;
      int max;
      int min;
  } array;
  </code></pre>
  
  <p>Where <code>*array</code> points to an dynamically allocated array, <code>max</code> and <code>min</code> holds the maximum and minimum numbers in the array.</p>
  
  <p>I need to share an instance (can I use the word 'instance' in C?) of this struct between two processes, am I supposed to use <code>shm_open()</code> first for allocating the array pointed by <code>*array</code> and second for allocating the struct itself, or is there a better way achieving the same result? </p>