title: Passing values directly as array to function in C
body: <p>I have a function which accepts an integer array as argument and print it.</p>
  
  <pre><code>void printArray(int arr[3])
  {
     int i;
     for(i=0; i&lt;3; ++i)
     {
        printf("\n%d", arr[i]);
     }
  }
  </code></pre>
  
  <p>Is there a way to pass the values of the array like this</p>
  
  <pre><code>printArray( {3, 4, 5} );
  </code></pre>
  
  <p>if I know the values before hand <strong>without having to create an array just for the sake of passing it to the function</strong>?</p>