title: Is it possible to have anonymous, ad-hoc arrays in C?
body: <p>Is it possible to create anonymous, ad-hoc arrays in C? </p>
  
  <p>For example, suppose I have a function called <code>processArray(int[] array)</code> that takes an int array as its argument, can I pass it an anonymous array in the following way:</p>
  
  <pre><code>int main(){
   processArray( (int[]){0, 1, 2, 3} ); //can I create this type of array?
   return 0;
  }
  </code></pre>
  
  <p>Or do I have to declare the array previously (with a pointer), and then pass its pointer to processArray()? For example:</p>
  
  <pre><code>int main(){
   int[] myArray = {0, 1, 2, 3};
   processArray(myArray);
   return 0;
  }
  </code></pre>