title: How to initialize an array with only -1 values
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/201101/how-to-initialize-an-array-in-c">How to initialize an array in C</a><br>
    <a href="https://stackoverflow.com/questions/13477281/initializing-an-array-of-ints">initializing an array of ints</a>  </p>
  </blockquote>
  
  
  
  <p>I wonder over the fastest/simplest way to initialize an int array to only contain -1 values. The array I need is 90 ints long so the straightforward way should be to initialize it like this:</p>
  
  <pre><code>int array[90]={-1, -1, -1, ...};
  </code></pre>
  
  <p>but I only want to use the array once so I want to be able to use it dynamically and be able to free it after using it in the program, so Im more looking for a fast way like <code>calloc</code>, but instead of zeros, -1 of course.</p>