title: Adding an element to an array in C without a loop
body: <p>This is my first time asking so please be gentle lol.
  So I am trying to better understand arrays in C. Is there a way I can add an element to an array without using a for loop? The problem is I want to add a new element to the end of the array, but without knowing the size of the array.</p>
  
  <p>So I already have this:</p>
  
  <pre><code>#include &lt;stdlib.h&gt; //not sure if needed but put it just in case
  int main(void):
     float real[20];
     real[]={1,2,3,4,5};
  </code></pre>
  
  <p>I want to add the number 6 to the array, but I don't want to use real[5]=6. Is there another way to add an element to the end of the array without a loop checking if each element in the array until the element is null? Thanks for your help in advance!</p>