title: C: Passing an array into a function 'on the fly'
body: <p>I have a function, and I want to pass an array of char* to it, but I don't want to create a variable just for doing that, like this:</p>
  
  <pre><code>char *bar[]={"aa","bb","cc"};
  foobar=foo(bar);
  </code></pre>
  
  <p>To get around that, I tried this:</p>
  
  <pre><code>foobar=foo({"aa","bb","cc"});
  </code></pre>
  
  <p>But it doesn't work. I also tried this:</p>
  
  <pre><code>foobar=foo("aa\0bb\0cc");
  </code></pre>
  
  <p>It compiles with a warning and if I execute the program, it freezes.<br>
  I tried playing a bit with asterisks and ampersands too but I couldn't get it to work properly.</p>
  
  <p>Is it even possible? If so, how?</p>