title: How to pass a constant array literal to a function that takes a pointer without using a variable C/C++?
body: <p>If I have a prototype that looks like this:</p>
  
  <pre><code>function(float,float,float,float)
  </code></pre>
  
  <p>I can pass values like this:</p>
  
  <pre><code>function(1,2,3,4);
  </code></pre>
  
  <p>So if my prototype is this:</p>
  
  <pre><code>function(float*);
  </code></pre>
  
  <p>Is there any way I can achieve something like this?</p>
  
  <pre><code>function( {1,2,3,4} );
  </code></pre>
  
  <p>Just looking for a lazy way to do this without creating a temporary variable, but I can't seem to nail the syntax.</p>