title: Global array for malloc
body: <p>I am working on a project where I need to malloc some data. I am trying to reduce the heap peak of my program by changing around the main structure values I use. I am using a linked list. My struct is like:</p>
  
  <pre><code>struct myS{
  
  int a,b;
  float a,b;
  struct myS *next;
  
  };
  </code></pre>
  
  <p>I was thinking that instead of mallocing the struct pointer I would store it in a global array since I dont have much data. How would I do this ?</p>